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 19, 2022 12:54 AM
https://api.hubapi.com/crm-associations/v1/associations/[contact_id]/HUBSPOT_DEFINED/9?hapikey=demo
Hi the above endpoint gives the associated engagements of a contact in a random order. is there any way to get it in newest from the oldest or is there any endpoint which gets the most recent engagement associated to a contact. the Get recent engagements endpoint doesnt work for my usecase since it uses a fixed time to fetch all the engagements post that time.Is there any way to get the newest single engagement associated to a contact?
Solved! Go to Solution.
May 19, 2022 11:04 AM
I think the best bet would be to use the CRM search where you can sort either ascending of descending.
The only possible drawback is that you will need to do a different call for each engagement type...
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
May 19, 2022 11:04 AM
I think the best bet would be to use the CRM search where you can sort either ascending of descending.
The only possible drawback is that you will need to do a different call for each engagement type...
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |