1

Requester email placeholder "undefined" in Text App

We use a trivial Text App which includes several URLs, each of which includes requester email placeholder. This has always worked perfectly, but for the past few days (since early Nov 1?) this placeholder frequently (usually?) returns "undefined" until the Apps panel is reloaded. Sometimes several Apps reloads are required.

Perhaps related to this?: https://support.zendesk.com/entries/22311497-bug-in-event-listener-on-zendesk-framework

7 comments

  • 0

    I am seeing the same thing. Nearly every initial load throws the error. I need to Reload Apps every time.

    Is there a way in the app to loop until that value is found/available?

  • 0

    I ran into the same issue. Apparently there is a way to wait until all dta is loaded, it's documented here:

    http://developer.zendesk.com/documentation/apps/reference/events.html#framework-events

  • 0
  • 0
    1. Why did this just start happening in the past week?

    2. If this is now a common problem, then surely the fix should be at the level of the Apps panel loading, not have to be included in every App?

    3. But if this is what it takes, then why does the standard Text App not use these techniques?

  • 0

    I figured this one out.  You have to combine "wait until everything loads" (https://support.zendesk.com/entries/22019977-tip-delay-app-loading-until-all-data-is-ready) with a second template (or template within a template or something) to switch views after loading is complete.  All this does it stick the requester's email into the scope of the second template so that you can use it in, e.g., a link.

    Honestly, I beat my head against the wall for quite awhile on this one.  I'd probably appreciate the new app structure for something complex, but this is pretty ridiculous for something as basic and useful as a contextual link.

    Attached is the full zip - I basically hacked up the bookmarks example, so it still has Zendesk icons and the like.  It's very ugly but it works, though it doesn't always load reliably and you have to refresh Apps every other time or so.

  • 0

    Many thanks, Jesse. ZD, can we all get an updated Text App soon that does the same without the detritus?

  • 0

    Glad that I could help.  To be clear, all that you need to edit is the templates/lists.hdbs file if you need links that reference the ticket or requester.  That may save you some additional time.

Please sign in to leave a comment.