zendeskzendesk-appzendesk-sdk

Zendesk - How do we can read data of currently opened tickets in server side app?


I have an app which is server side. my task is to read and display data from on currently opened tickets in my server side app.

is it possible? or what can be best solution for doing this? Thanks


Solution

  • I assume you have set your app's entry point url in the manifest files as follows:

    ...
    "location": {
      "support": {
        ticket_sidebar": {
          "url": "https://my.app/index.html"
        }
      }
    },
    ...
    

    You need to import ZAF SDK into your app which will enable you to use the client to access ticket data. Refer to apps API here.

    Note that you will get an error on your server side app url because the ZAF client will only be defined within Zendesk. This is expected. So make sure you only test it on you Zendesk instance.

    Refer to official tutorial here