I have setup a unique key in hubspot company called "qb_id".
We have few keys and we need to check if there is a company against any of these keys. So I am using IN operator in Hubspot. Now this works fine as long as all values in the values section exist in the entity.
But I was expecting it to return what it has and ignore others. Is this how Hubspot API works?
https://api.hubapi.com/crm/v3/objects/companies/search
{
"filterGroups": [
{
"filters": [
{
"values": [
"80009B-1740523656",
"800009-1714768680",
"80001A-1740245396"
],
"propertyName": "qb_id",
"operator": "IN"
}
]
}
],
"properties":["qb_id"]
}
In the given sample only one ID exists in companies table. But it does not return any result. If I remove dummy values and search with only one valid value, it return results correctly.