Zendesk Apps tutorial - Sending data to an external application Follow



  • Avatar
    David Bishop

    I built this app and added it to an application that got data from an external application (created based on the instructions found here: https://help.zendesk.com/hc/en-us/articles/229489168-Zendesk-Apps-tutorial-Getting-data-from-an-external-application).  It works beautifully on my local.  After following the security steps and uploading the app I get 401 errors when I try to view or create tasks.

  • Avatar
    Charles Nadeau (Edited )

    Hi David,

    401s are authorization errors. In step 3 of the "Secure sensitive information" section above, I just noticed a problem with the example. The step says to add secure: true in the settings object, but it's not included in the example. It should read:

    var settings = {
      url: 'https://app.asana.com/api/1.0/tasks',
      headers: {"Authorization": "Bearer {{setting.token}}"},
    secure: true, type: 'POST', contentType: 'application/json', data: JSON.stringify(task) };

    Could this be the problem?

    Note: I updated the example in the step. 

  • Avatar
    David Bishop

    Hi, yes that was actually the problem.  Thank you very much for your help.

Please sign in to leave a comment.

Powered by Zendesk