Recent searches


No recent searches

Searching for and updating custom Sell fields through API

Answered


Posted May 17, 2022

For Zendesk Sell, Is it possible to use the API to:

1) Search for a Company Contact by custom field value (numeric)

2) Update the value of another custom field (dropdown)

 

I'm a bit new to API but would like to know whether this is possible. 


0

1

1 comment

image avatar

Erica Girges

Zendesk Developer Advocacy

Hi Nicholas!
 
Thanks for posting your question to the Community. You can definitely achieve this by utilizing specific capabilities within the Sell and Search API's. I would recommend looking into the Search API first as you will need a valid token for authentication in order to use it. The linked getting started guide will help ensure that you're all setup and get you familiar with how to send requests and queries. 
 
Then to go about meeting your use case needs, you could use the Custom Fields Mapping. This would give you the associated id for that specific custom field. You can then use that id with our Search API to query for all Contacts where that custom field has the specified value. Lastly, once the Contact is found and returned, you can grab that Contact's id and update that Contact's info (including a different Custom Field's value) using the Update Contact endpoint.
 
Hope this helps!
 
Erica

1


Please sign in to leave a comment.

Didn't find what you're looking for?

New post