How to update ticket fields using API or app from Zendesk

4 Comments

  • Kay
    Community Moderator

    Welcome to the community Venkata 👋

    There are a few options to achieve this.

    1. Via the Zendesk REST API
    2. Via a listener in your app and using ZAF (Zendesk Apps Framework)

    1. Zendesk REST API (fires server-side)

    You would want to create a HTTP target (under extensions) in Zendesk. This is kind of like a webhook. Then create a trigger which has this target as an action. It should hit your server with the ticket ID for instance, you do your magic on your own server, and then update the ticket in Zendesk.

    2. Event listener in ZAF (fires client-side, i.e. when an agent views a ticket)

    Since you've said you already have an app, you should be on the lookout for these framework events. Which allow you to listen to ticket opens or field changes. With ZAF you can then update the ticket fields accordingly.

    Enjoy :)

    0
  • Venkata Ganesh Medisetti

    Hi Kay,

    This is great!

    Good to know the second option using event listener. 

    I think, got the concept, but I am sorry, I still didn't understand how I can update the ticket fields.  Where we can add the code to push the data.  Is this within my app on the external system?  

    May I request for an example or links for more details, please.

    Thanks and Regards,

    Venkat Ganesh Medisetti

    0
  • Matteo
    Zendesk Community Team

    Hello Venkata,

    judging from your needs, you have the data on an external system, where you can retrieve it at needs. You need then to pass the data to a custom field in Zendesk.

    Where we can add the code to push the data ?

    To answer this question: might be on both sides.

    • On the external system, you need a way to serve this data, to put it simple, to store it somewhere, like a variable or an array.
    • Once you have the data stored, you can then get that data from an app.

    Here is a tutorial to build an app the gets data from an external application: https://develop.zendesk.com/hc/en-us/articles/360001069187-Zendesk-Apps-tutorial-Getting-data-from-an-external-application

    Hope this helps!

    0
  • Venkata Ganesh Medisetti

    Hi Matteo,

     

    Thanks for your response.  We already built the app and we are able to see the data through the app, when we open the ticket.  But my end goal is to update the data from the app to the ticket fields.  How I can achieve it.

    Thanks and regards,

    Venkata Ganesh Medisetti

    0

Please sign in to leave a comment.

Powered by Zendesk