APIs & Integrations

CMoore5
Membre

Search for objects by their import id

So I am trying to access the HubSpot objects made specifically from the last import. The way I was able to do it as through this call https://api.hubapi.com/crm/v3/objects/companies/search?hapikey={}

 

 

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "_inbounddbio.importid_",
          "operator": "EQ",
          "value": "{importId}"
        }
      ]
    }
  ]
}

 

 

I get the importId through POST /v3/imports. The way I got to this solution was that I noticed the webapp was filtering on the same property when viewing Companies through the webpage. I also noticed that there isn't any documentation on the _inbounddbio.importid_ field. I'm wondering if there was another way to do this or if this is okay to continue with.

0 Votes
2 Réponses
webdew
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

Search for objects by their import id

Hi @CMoore5 ,

Only type property name and property value
Hope this will work in you case :

URL : https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=demo


POST Method :
$data = '{
"filterGroups": [
{
"filters": [
{
"propertyName": "<ImportID>",
"operator": "EQ",
"value": "{importId}"
}
]
}
]
}';


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

0 Votes
CMoore5
Membre

Search for objects by their import id

@webdewSo I tried replaceing _inbounddbio.importid_ with "<ImportID>"and it didn't work. 

0 Votes