Issue with searching for hs_additional_emails?

hkampen
Contributor

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?

0 Upvotes
2 Accepted solutions
evaldas
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

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-domai...

✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
hkampen
Solution
Contributor

I was wrong, EQ works:

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

View solution in original post

0 Upvotes
3 Replies 3
evaldas
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

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-domai...

✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
hkampen
Contributor

Hi @evaldas,

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

0 Upvotes
hkampen
Solution
Contributor

I was wrong, EQ works:

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

0 Upvotes