Update Organization from ZAF ticket app

4 Kommentare

  • Ahmed Zaid
    User Group Leader Community Moderator

    Hi Raven Agape,

    If your app location is in the ticket sidebar, you can update organization fields as follows:

    client.set('ticket.organization.customField:your_field_key', 'your_field_value');

    The API reference is comprehensive. You will need to go through ZAF Client API, Core Apps API, targeted product's API for 'All locations' and your app's specific location. You will also need this article from developer documentation.

    All the best,
    Ahmed

    0
  • Raven Agape

    Worked like a charm! Thank you so much!

    0
  • Raven Agape

    After deployment we realized that if the user using the app doesn't have permission to modify the org the app doesn't work. This was the point of the app, so that is a no go. 

    Any ideas how I can authenticate the app in a way it can modify the org no matter the users permissions?

    0
  • Ahmed Zaid
    User Group Leader Community Moderator

     Raven Agape,

    Technically, you can overlap ZAF integration and authenticate using OAuth. You should be able to use OAuth flow to Zendesk Support like you would any third-party app. However, this is not good security practise. All requests will come from the admin who installed the app (and completed the OAuth flow) if I am not mistaken. I do not recommend it. Instead, you should review the user permissions.

    Anyhow, if you choose to do it, Make sure you scope the OAuth token to organizations only.

    "scope": "organizations:write read"

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk