Has anyone worked with the APIs for customer success team portfolio coverage?
SOLVE
I need to automate the generation of reports on meetings held by the CS team with clients.
Each client is a different ticket, so I need to search all tickets for the date of the last coverage meetings. The APIs are quite complex to manage! It requires making multiple requests in sequence and loops to obtain simple information.
Has anyone been able to do something like this? I'm using Power Automate.
Since you need to loop through all the tickets, the first step is to make a call using either the search endpoint you mentioned or the list endpoint: https://api.hubapi.com/crm/v3/objects/tickets.
In your scenario, one possible optimization is to reduce the process to just a single follow-up API call instead of the two you described. Rather than first retrieving associations via the associations endpoint and then fetching meeting details, you can use the Search API to directly query meetings associated with a specific contact (by ID).
By sorting the results by the start date in descending order and specifying the desired properties to retrieve, you can obtain all the necessary information with only one follow-up call per ticket ID. For reference, I’ve attached a screenshot illustrating this approach.
Did my post help answer your query? Help the community bymarking it as a solution 🙂
Since you need to loop through all the tickets, the first step is to make a call using either the search endpoint you mentioned or the list endpoint: https://api.hubapi.com/crm/v3/objects/tickets.
In your scenario, one possible optimization is to reduce the process to just a single follow-up API call instead of the two you described. Rather than first retrieving associations via the associations endpoint and then fetching meeting details, you can use the Search API to directly query meetings associated with a specific contact (by ID).
By sorting the results by the start date in descending order and specifying the desired properties to retrieve, you can obtain all the necessary information with only one follow-up call per ticket ID. For reference, I’ve attached a screenshot illustrating this approach.
Did my post help answer your query? Help the community bymarking it as a solution 🙂