APIs & Integrations

pratiksathaye
Participante

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

resolver

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 Me gusta
1 Soluciones aceptada
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

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

resolver

@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"
    }
  ]
}

 

Ver la solución en mensaje original publicado

1 Respuesta 1
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

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

resolver

@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"
    }
  ]
}