APIs & Integrations

SSundar1
Member

Can we get most recent engagement from the get associated engagements api

SOLVE

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?

0 Upvotes
1 Accepted solution
dennisedson
Solution
Community Manager
Community Manager

Can we get most recent engagement from the get associated engagements api

SOLVE

@SSundar1 

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

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show

View solution in original post

0 Upvotes
1 Reply 1
dennisedson
Solution
Community Manager
Community Manager

Can we get most recent engagement from the get associated engagements api

SOLVE

@SSundar1 

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

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes