Issue with searching for hs_additional_emails?

Hi,

this is the search code. I checked it serveral times. A contact with that e-mail address exists, but I get not result:

“filterGroups”: [{“filters”: [{“value”: “harald@example.com”, “propertyName”: “hs_additional_emails”, “operator”: “CONTAINS_TOKEN”}]}

When I change the propertyName to ‘email’ and value to ‘harald.’, it finds serveral contacts.

Is there an issue with searching for hs_additional_emails?

Hi @hkampen,

Looks like you are trying to use CONTAINS_TOKEN with the “hs_additional_emails” property, which is an an enumeration (“select”) and using CONTAINS_TOKEN with these types of properties will probably not work.

Some addtitional information regarding a similar issue from another thread:

https://community.hubspot.com/t5/APIs-Integrations/Use-CONTAINS-TOKEN-to-find-emails-by-sender-domain/m-p/1038529/highlight/true#M76476

Hi @evaldas,

but EQ doesn’t work either. So I can’t accept the answer as solution.

I was wrong, EQ works:

“filterGroups”: [{“filters”: [{“value”: “harald@example.com”, “propertyName”: “hs_additional_emails”, “operator”: “EQ”}]}