APIs & Integrations

MarkBold
Membre

Include associated Deal information in Companies Search results

Hello,

 

Using the API v3 Companies Search endpoint - POST/crm/v3/objects/companies/search

 

Is it possible to include associated deal information in the company results returned? For example, I notice there is a pseudo-property "associations.deal" that can be used in the "properties" parameter in the Search API for deals associated with tickets - is there something like this to return deals associated with companies when using search?

 

Having to make individual calls to the Associations API for each single instance of a company in the returned results is likely to exceed API limits for our reporting purposes.

 

Many thanks,

Mark

4 Réponses
Yel-o
Contributeur

Include associated Deal information in Companies Search results

Hi @MarkBold ,

 

Were you able to figure this out? I'm facing the same issue now.

 

@dennisedson would you have an idea on how to make this work?

0 Votes
MarkBold
Membre

Include associated Deal information in Companies Search results

Hi @Yel-o 

 

No, we couldn't see a way to get the associated information from the Search endpoint. Because of this, and also because of the limit of search parameters (ie- "You can include a maximum of three filterGroups with up to three filters in each group.") we built a separate search index of the information we have in Hubspot (kept in sync by various API calls) that we can query as we need.

 

Good luck!

Mark

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Include associated Deal information in Companies Search results

Hey @MarkBold ,

Are you still working on this?

 

Going to tag in a couple people that may have some ideas for you

 

@himanshurauthan , @DavidFJones could you all take a look and see if you can help?

 

Thanks!

d

MarkBold
Membre

Include associated Deal information in Companies Search results

Hi Dennis,

 

Thanks for your reply. Yes, still working on it - trying the "setAssociations()" method in the PHP v3 client library, but without much luck so far.

 

Mark