APIs & Integrations

pratiksathaye
Participant

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

SOLVE

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 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

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

SOLVE

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

 

View solution in original post

1 Reply 1
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

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

SOLVE

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