0

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

Ram Chander
  • 1,088
  • 2
  • 18
  • 36

1 Answers1

1

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

ahmedsabriz
  • 392
  • 1
  • 3
  • 9
  • Thanks for the response, But the ZAF SDK didn't working on server side app – Ram Chander Jul 19 '22 at 16:09
  • Many apps on the marketplace are server-side and utilise ZAF SDK including one app I built. Follow the tutorial I included and share any snippets where you get stuck. – ahmedsabriz Jul 19 '22 at 16:13
  • I have already tried that, I'll try again with a fresh mind as well. – Ram Chander Jul 19 '22 at 16:13
  • Now I got it. The ZAF SDK script execution will only be working when it runs through zendesk, it will not work if we tried to run outside zendesk/through URL. I was close but Thank you correcting me :) – Ram Chander Jul 19 '22 at 17:20