NO result:
curl --request POST --url https://api.hubapi.com/crm/v3/objects/contacts/search \--header 'authorization: Bearer ###### --header 'content-type: application/json' \--data '{ "filterGroups": [ { "filters": [ { "operator": "IN", "propertyName": "nav_guid", "values": ["FD291D3E-F357-49BA-87D4-EA0E6234EB57"] } ] } ], "properties": [ "nav_guid" ]}'{"total":0,"results":[]}
WORKS:
curl --request POST --url https://api.hubapi.com/crm/v3/objects/contacts/search \--header 'authorization: Bearer ###### --header 'content-type: application/json' \--data '{ "filterGroups": [ { "filters": [ { "operator": "EQ", "propertyName": "nav_guid", "value": "FD291D3E-F357-49BA-87D4-EA0E6234EB57" } ] } ], "properties": [ "nav_guid" ]}'{"total":1,"results":[{"id":"10901","properties":{"createdate":"2022-05-19T13:17:42.678Z","hs_object_id":"10901","lastmodifieddate":"2022-05-19T13:18:37.780Z","nav_guid":"FD291D3E-F357-49BA-87D4-EA0E6234EB57"},"createdAt":"2022-05-19T13:17:42.678Z","updatedAt":"2022-05-19T13:18:37.780Z","archived":false}]}
I am a fullstack-developer and I am currently creating a sync-solution from MS-Navision to Hubspot.
I get no result when searching via IN-operator, though the same search with EQ works. What do I have to change? IN is used since I need to have at least a few contacts as a package for perfoemance reasons. Other possibilitys would be to parallelize request to the Hubspot-API up to API-limits, which would produce unnecessary load for both involved systems (Hubspot as well as emitting server). I am using the PHP-librabry (hubspot/api-client), but to remove possible coding errors on my side, I am trying if this even works via CURL (#### is removed for privacy-reasons, since this contains customer-data)
Label might be wrong, but since to my knowledge this customer has an Enterprise account with arround 500k contact-volume this seemed most appropriate when browsing the available options.
bR, Stefan
