Skip to main content

Hi,

 

We have a use case where have the ID of a deal/opportunity from Salesforce/Hubspot, and need to fetch all associated calls.

 

The manual-associations endpoint does not seem to work for us since it only returns calls that were manually associated in the UI

 

The way we are trying is using calls/extensive and fetching all calls with pagination prior to the deal close date and checking if the party emails match any of the contact emails.

 

Is there a better way to do this? It would be great if through the API you could filter based on Hubspot Deal ID or Salesforce Opp ID

Hey ​@Andrew Luo!

We don’t have a way to fetch calls by CRM Opportunity ID but the calls/extensive endpoint will return these values. It may be more efficient to use this as opposed to email to ensure you are focusing on only calls relevant to the right opportunity. 

https://gong.app.gong.io/settings/api/documentation#post-/v2/calls/extensive

 


@BridgetFinegan 

Ah gotcha, I forgot to mention we are using both as a potential “match”. 

 

However, to get the initial calls to check we are paginating through essentially the entire history of Gong calls (since pagination is limited to 100). We added some delay to avoid hitting the API rate limit. This means it can take up to 10 minutes to fetch all the calls before we go through them and filter.

 

Is this the best/only way to go about this?


Makes sense.

 

For reference, the API rate limit is on the company level as opposed to the app level but I understand the concern over time. You may consider fetching calls on a script and securely storing them to avoid the necessity to make an exuberant amount of API calls on a per-request basis. 

 

If you’d like our Engineering Support Team to review or troubleshoot a specific workflow you are testing, they are available via this form🙂


Reply