APIs & Integrations

pratiksathaye
Participant

Way to search Companies cotaining some letters and embed Deals associated with the company

Résolue

Hello,

I am trying to search for companies by name containing letters but seems like the available operators are restricting this functionality.
I am able to search a company when I use same name with EQ operator but is there a way we can search multiple companies having common letters?
Also is there any way I can get all associated deals for the companies received in the search result?

0 Votes
1 Solution acceptée
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Way to search Companies cotaining some letters and embed Deals associated with the company

Résolue

@pratiksathaye 

For the fuzzy search support, I would suggest  upvoting this post.

For the associations, you can use the batch read endpoint listed on this page

Call would look like this:

https://api.hubapi.com/crm/v4/associations/companies/deals/batch/read

json body where companyID would be replaced with an actual ID:

{
  "inputs": [
    {
      "id": "companyID"
    },
    {
      "id": "companyID"
    }
  ]
}

 

Voir la solution dans l'envoi d'origine

1 Réponse
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Way to search Companies cotaining some letters and embed Deals associated with the company

Résolue

@pratiksathaye 

For the fuzzy search support, I would suggest  upvoting this post.

For the associations, you can use the batch read endpoint listed on this page

Call would look like this:

https://api.hubapi.com/crm/v4/associations/companies/deals/batch/read

json body where companyID would be replaced with an actual ID:

{
  "inputs": [
    {
      "id": "companyID"
    },
    {
      "id": "companyID"
    }
  ]
}