Recent searches


No recent searches

Search organization with custom field key "type"



Posted Mar 25, 2022

Hello,

We have a custom organization field with field key "type".

I try to search organizations with text in this field, but the url is like so :

https://xxx.zendesk.com/api/v2/search.json?query=type:organization type:MQL

And the repetition of "type" is not helping i guess, it gives me all organizations i have instead of just organization with this type...

How can i do ?

Thanks for the help.

Pauline.


0

1

1 comment

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hi Pauline,
 
Thanks for reaching out!
 
"type" is a reserved filter associated with the search functionality so using that word as a custom field key is not going to work correctly for the purposes of search, unfortunately. I would suggest recreating the custom field with an alternative field key; something like org_type as the field key and you could still have the field name as whatever you prefer.
 
Let me know if you have any questions!
 
Tipene

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post