# Map Activity Fields with Dynamics 365 crm fields using Engagements Api

**URL:** <https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [May 30, 2019, 7:26am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577 "2019-05-30T07:26:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zohaib](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zohaib/32/52876_2.png) [@zohaib](https://community.hubspot.com/u/zohaib)\
**Post date:** [May 30, 2019, 7:26am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/1 "2019-05-30T07:26:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 30, 2019, 9:20pm UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/2 "2019-05-30T21:20:00Z")

</div>

Hi, @zohaib.

To clarify, are you querying an endpoint like [this](https://developers.hubspot.com/docs/methods/engagements/get-all-engagements) and not seeing fields you would expect in the response? If so, please share the following:

1. Your Hub ID.
2. An example request URL (not including authentication tokens).
3. The full response from the Engagements API.
4. The names of or a description of the fields you wish to see.

---

<div class="post-metadata">

**Author:** ![zohaib](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zohaib/32/52876_2.png) [@zohaib](https://community.hubspot.com/u/zohaib)\
**Post date:** [June 20, 2019, 6:00am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/3 "2019-06-20T06:00:02Z")

</div>

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..

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 20, 2019, 6:04pm UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/4 "2019-06-20T18:04:41Z")

</div>

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:

- To get all form submission events (form name, time, etc.), use a [Contacts API](https://developers.hubspot.com/docs/methods/contacts/contacts-overview) endpoint like [this](https://developers.hubspot.com/docs/methods/contacts/get_contacts) and include the query parameter `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](https://developers.hubspot.com/docs/methods/forms/get-submissions-for-a-form) and search the results for the desired contact.
- To get changes to the _Lifecycle stage_ property, use a Contacts API endpoint like [this](https://developers.hubspot.com/docs/methods/contacts/get_contact_by_email) and include the query parameters `property=lifecyclestage&propertyMode=value_and_history`.
- List membership data is returned by all Contacts API endpoints in the `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](https://developers.hubspot.com/docs/methods/lists/get_lists).

---

<div class="post-metadata">

**Author:** ![zohaib](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zohaib/32/52876_2.png) [@zohaib](https://community.hubspot.com/u/zohaib)\
**Post date:** [June 24, 2019, 5:00am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/5 "2019-06-24T05:00:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zohaib](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zohaib/32/52876_2.png) [@zohaib](https://community.hubspot.com/u/zohaib)\
**Post date:** [June 25, 2019, 7:16am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/6 "2019-06-25T07:16:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 25, 2019, 12:32pm UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/7 "2019-06-25T12:32:40Z")

</div>

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](https://developers.hubspot.com/docs/methods/contacts/get_contacts), 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:

```auto
"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](https://community.hubspot.com/t5/APIs-Integrations/Map-Activity-Fields-with-Dynamics-365-crm-fields-using/m-p/276392/highlight/true#M25180):

**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](https://developers.hubspot.com/docs/methods/forms/get-submissions-for-a-form) and search the results for the desired contact.

---

<div class="post-metadata">

**Author:** ![zohaib](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zohaib/32/52876_2.png) [@zohaib](https://community.hubspot.com/u/zohaib)\
**Post date:** [June 27, 2019, 11:04am UTC](https://community.hubspot.com/t/map-activity-fields-with-dynamics-365-crm-fields-using-engagements-api/14577/8 "2019-06-27T11:04:41Z")

</div>

Thanks @IsaacTakushi ..
