How to get all engagements of all types(Calls,meetings, notes ......) of a particular deal sorted by

How to get all engagements of all types(Calls,meetings, notes …) of a particular deal sorted by recently created or updated time stamp?

Hey, @PavanM :waving_hand: Thanks for your question.

This issue has come up in various forms many times. The short answer is — there isn’t a single call that will meet your needs.

I have a few suggestions based on the available and documented options:

  • If you need to add a `sorts`, ascending or descending, to your request, you’ll need to use the Search API.
  • If you are only working with default objects, Contacts, Companies, Deals, etc, and not custom objects, you may find this endpoint useful — Get associations for a CRM object. But it doesn’t offer a `sorts` option. `GET /crm-associations/v1/associations/:objectId/HUBSPOT_DEFINED/:definitionId`
  • You can use the v3 Associations Endpoints as well

I understand these are not the direct solutions you wanted. And if you are using custom objects or custom associations labels between objects, the second option will not work.

Best,

Jaycee