APIs & Integrations

hanks83
メンバー

Return associated company data from deal search

解決

Is it possible to pull the associated company details when using the search API?

I'm searching for deals, and would like to return the associated company.  I can get it if I view all deals, but that isn't ideal.

Using the below endpoint:
https://api.hubapi.com/crm/v3/objects/deals/search

0 いいね!
1件の承認済みベストアンサー
Teun
解決策
名誉エキスパート | Diamond Partner
名誉エキスパート | Diamond Partner

Return associated company data from deal search

解決

Hi @hanks83 ,

 

I think you need a second API call for this. If you have retrieved all your deals, you can then use the associations endpoint to retrieve all associated companies, as described in this post.

So first store all deal ID's in an array after your search and then call the associations API to retrieve the associated companies.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


元の投稿で解決策を見る

1件の返信
Teun
解決策
名誉エキスパート | Diamond Partner
名誉エキスパート | Diamond Partner

Return associated company data from deal search

解決

Hi @hanks83 ,

 

I think you need a second API call for this. If you have retrieved all your deals, you can then use the associations endpoint to retrieve all associated companies, as described in this post.

So first store all deal ID's in an array after your search and then call the associations API to retrieve the associated companies.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.