We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 30, 2019 3:26 AM - edited May 30, 2019 6:11 AM
I am using Hubspot Engagements Api to Map Hubspot Activity with dynamics 365 crm Activity fields.but every time engagment Api return me 11 fields.how can i get all contacts and company Activity fields values through engagments api.
Solved! Go to Solution.
Jun 25, 2019 8:32 AM - edited Jun 25, 2019 8:33 AM
Hi, @zohaib.
On this forum, we strive to respond to posts within 48 hours. Usually we are much faster. Thank you for your patience.
To clarify, are you asking how to get all contacts in your account via this endpoint, or how to get all activities on the contacts that you do get?
If you are asking how to get all contacts (not just 100 with the count
parameter), you must make multiple calls to the endpoint, each getting 100 contact records at a time. At the end of each response, you will see something like:
"has-more": true, "vid-offset": 123456
If has-more
is true
, then place the vid-offset
value in the request URL (e.g. vidOffset=123456
). Then, make another request to get the next 100 contacts (for a total of 200). Repeat until has-more
is false
.
If you are saying that not all activities are included in the contacts you do retrieve, please see my previous response:
It is not possible to retrieve all these contact activities from a single API or endpoint.
Depending on what you define as an "activity," you may have to use other APIs and endpoints together with the Contacts API. For example, to see the fields in each submission, use this endpoint and search the results for the desired contact.
Isaac TakushiAssociate Certification Manager |
May 30, 2019 5:20 PM
Hi, @zohaib.
To clarify, are you querying an endpoint like this and not seeing fields you would expect in the response? If so, please share the following:
Isaac TakushiAssociate Certification Manager |
Jun 20, 2019 2:00 AM
Hello @IsaacTakushi dear how can i get all contacts related activites thats perform on contacts like form submission,lifecycle change,page view,workflow activity,list membership etc.please tell me which api i use to get all these activities..
Jun 20, 2019 2:04 PM
Hi, @zohaib.
It's good to hear from you.
It is not possible to retrieve all these contact activities from a single API or endpoint.
Instead, you must use several:
formSubmissionMode=all
in the request URL. This will return all form submission events for each contact. To see the fields in each submission, use this endpoint and search the results for the desired contact.property=lifecyclestage&propertyMode=value_and_history
.list-memberships
array. The time is recorded in the timestamp
field. To look up the human-readable names of lists, reference the results from this endpoint.Isaac TakushiAssociate Certification Manager |
Jun 24, 2019 1:00 AM
Hi @IsaacTakushi thanks for your response.. But now problem is that Get Contact All Api return me by default only 20 records. It return me maximum records when i set count=500. means it return maximum 500 record Activites of Contacts..But i get all contacts records activites which is in my hubspot.
Jun 25, 2019 3:16 AM
Hi @IsaacTakushi Please reply me if you have read my response about contacts Activites. i cannot get All contacts Activites.. Get All contact Api return me few contact activites not all Activites.
Jun 25, 2019 8:32 AM - edited Jun 25, 2019 8:33 AM
Hi, @zohaib.
On this forum, we strive to respond to posts within 48 hours. Usually we are much faster. Thank you for your patience.
To clarify, are you asking how to get all contacts in your account via this endpoint, or how to get all activities on the contacts that you do get?
If you are asking how to get all contacts (not just 100 with the count
parameter), you must make multiple calls to the endpoint, each getting 100 contact records at a time. At the end of each response, you will see something like:
"has-more": true, "vid-offset": 123456
If has-more
is true
, then place the vid-offset
value in the request URL (e.g. vidOffset=123456
). Then, make another request to get the next 100 contacts (for a total of 200). Repeat until has-more
is false
.
If you are saying that not all activities are included in the contacts you do retrieve, please see my previous response:
It is not possible to retrieve all these contact activities from a single API or endpoint.
Depending on what you define as an "activity," you may have to use other APIs and endpoints together with the Contacts API. For example, to see the fields in each submission, use this endpoint and search the results for the desired contact.
Isaac TakushiAssociate Certification Manager |
Jun 27, 2019 7:04 AM
Thanks @IsaacTakushi ..