zendeskzendesk-appzendesk-sdk

Zendesk - How to detect if I Change (before submit) Requester Name in opened Tickets?


I have a server side app, which display customer info such as name, id, email etc based on currently opened ticket. My next task is to update the Requester name in Zendesk App ( server side app ) if i made changes in Ticket Requester before submit.

is that possible?


Solution

  • You can add custom events using client.on('event_type', handler). Refer to ZAF Client API for available events depending on the location.

    Here is an example:

    if (client) {
        client.on('ticket.requester.name.changed', function(e) {
            document.getElementById('requesterNameElementId').innerText = e;
        });
    } else {
        console.log('ZAF Client only works within Zendesk iFrame');
    }