Can I use sunshine custom object's data to populate ticket dropdown fields? | Community
Skip to main content

Can I use sunshine custom object's data to populate ticket dropdown fields?

  • June 11, 2021
  • 3 replies
  • 0 views

If I create a sunshine custom object "root_causes" and populate it with data. Also, I create a custom dropdown field, namely "Root Cause", on ticket form.

Can I populate values in this ticket dropdown field "Root Cause" from the sunshine custom object "root_causes" data?

Please suggest. Thanks.

Rishi

This topic has been closed for replies.

3 replies

Eric78
  • June 28, 2021

Hi Rishi,

By default, it's not possible to populate ticket dropdown fields using Sunshine custom objects. In order to auto-populate the dropdown fields, you'll need to create a trigger that'll set the field to a specific/static value. Note that you won't be able to reference/define the custom object's value in the trigger itself.

Eric G. Gao | Technical Support Architect | Zendesk


  • Author
  • July 2, 2021

Thanks Eric. But I don't just need to set the value at the time of ticket creation. I have some data stored in Salesforce, which keeps changing. I want to create options in dropdown field using this data. For example, products.

What could be the best approach to do it?


Eric78
  • July 2, 2021

No problem Rishi.

Unfortunately our Salesforce integration only supports single-directional ticket sync from Zendesk to Salesforce, and not the other way around. So there's not a way to sync data/field values from a Salesforce case to a Zendesk ticket.

Your best option would be using our APIs to update your Zendesk tickets and their fields, but you'll likely need some custom script in Salesforce to fire the API calls when needed. https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket

Eric G. Gao | Technical Support Architect | Zendesk