Update external_id when user update Organization

1 Comments

  • Bryan Flynn

    Hi Garbriel. Having a code example of your approach will help.

    Assuming this is a ticket_sidebar app, you can set the external_id of a ticket using client.set('ticket.externalId', value)

    This sets the ticket.external_id field on the open ticket in memory but doesn't commit it. That is done when the ticket Submit button is clicked by the user.

    The code might look something like this:

    function setExternalID() {

      // Get input value that user entered.
      let val = document.getElementById('external-id').value;
     
      return client.set('ticket.externalId', val);
    }

     

    0

Please sign in to leave a comment.

Powered by Zendesk