Zendesk app quick start

Have more questions? Submit a request

9 Comments

  • Aaron Hill
    Comment actions Permalink

    Hi @charles thanks for the article- I'm having trouble getting through the first code:

     

    The only code it will let me run is zafClient.context() - the default option. Can you help with this?

     

     

    0
  • Jessie Schutz
    Comment actions Permalink

    Pinged Moderators

    0
  • Charles Nadeau
    Comment actions Permalink

    Hi Aaron, make sure you're running the REPL app from a ticket page, not a user or org page. The "ticket.subject" only works with a ticket open.

    0
  • Aaron Hill
    Comment actions Permalink

    @Charles I am on a ticket page- I've tried it with multiple different tickets. It must be another issue. Do you have any advice? Thanks!

    0
  • Judist Crews
    Comment actions Permalink

    Have the same issue as Aaron here. 

    0
  • Dave Chisholm
    Comment actions Permalink

    ditto:  I have "Sample ticket: Meet the Ticket" open.  I drop down the v2 REPL and paste the code:

    zafClient.get('ticket.subject')
    > APIUnavailable: "ticket.subject" Could not find handler for: "ticket.subject"

    When I post this, it successfully returns a JSON of tickets

    zafClient.request({
    url: '/api/v2/tickets.json',
    type: 'GET',
    contentType: 'application/json',
    })

     

    0
  • Russell Ransom
    Comment actions Permalink

    The embedded location of each REPL V2 console determines what data can be accessed, not just the URL of the page. The interpreter that should be used with the request, zafClient.get(ticket.subject'), is located in the Ticket's Apps sidebar, not the top bar dropdown found next to an agent's profile picture.

    The REPL app puts a console in every location an app can be placed - these consoles are not all created equally. Each comes with differing access to your Zendesk dataset.

    Commands available for each REPL console:

     

     

    2
  • Charles Nadeau
    Comment actions Permalink

    I updated the article to make it clearer that not all app locations are created equal. The examples in the tutorial should be run in the REPL app in the ticket sidebar location.

    0
  • Devan - Community Manager
    Comment actions Permalink


    Hello everyone,

    On Tuesday, November 5th, from 10:00am-12:00pm CST, we'll have a special guest team of experts on hand to answer your questions about Zendesk Apps Framework (ZAF) in your Zendesk Developer instance for an AMA-style conversation!

    Just click the "new post" button and write up your question. Be sure to be as detailed as possible. The best questions include: 

    • What it is you're trying to do
    • What you've tried so far 
    • Any other context or relevant information
    • Screenshots, if you have them

    Questions posted to this topic in advance of the start time will be answered first thing on the 5th, so if you've got something you want our experts to look at.

    0

Please sign in to leave a comment.

Powered by Zendesk