APIs & Integrations

NBiffen
Participant

JSON "filterGroups" not filtering results

If anybody can help but I have managed to build a POST body within Postman that returns the expected results.  The body is:

Screenshot 2025-04-29 at 15.07.54.png


Response:

Screenshot 2025-04-29 at 15.08.46.png

However, when replicating this within HubSpot's API required format, it fails to identify the specific order and instead returns all results, whilst also displaying random data across the additional properties.

Screenshot 2025-04-29 at 15.09.43.png

Screenshot 2025-04-29 at 15.12.11.png

Please if anybody can shed some light on this, it would be very much appreciated.

0 Upvotes
2 Replies 2
SteveHTM
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

JSON "filterGroups" not filtering results

@NBiffen - I think this could be quite simple. It looks like the 'IN' search test uses lowercase string literals for values in the filter - not totally obvious from the documentation, but can be critical in setting things up.

https://developers.hubspot.com/docs/guides/api/crm/search

 

I actually tend to use IN for ennumerated property values - and EQ )with 'value') for tests for single string values.

 

Hope that helps!

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
0 Upvotes
NBiffen
Participant

JSON "filterGroups" not filtering results

Thanks Steve, appreciate the response.  Unfortunately the "EQ" function doesn't return the direct match, but instead the entire list.  Wherea's (through some trial and error) "IN" does return the required response.

However, where I am really baffled is that the API response is positive, but when entering this into HubSpot the results change and do not perform the "filterGroups" function.  

I wasn't sure if I was missing something from the entry into HubSpot's UI?

0 Upvotes