Recent searches
No recent searches
Zendesk Embedded Agent issue
Posted Mar 23, 2023
While embedding the agent to Zendesk, Invoke method on client object is not working once we login to application as we are getting value for client object as false.
We are creating client object as below:
client = window.ZAFClient.init();
client.invoke('routeTo', 'ticket', 780);
We tried calling init on ZAFClient method by passing search parameter as given below so that we get client object as expected before and after login to CXone agent application but it does not work. When we create a client object as below, the invoke method on client object does not throw an error but does not work as well.
client = window.ZAFClient.init(() => {
console.log('initialize callback');
}, {
search: "app=cxa_zd&origin=https://d3v-niceincontact.zendesk.com&app_guid=5950dfec-e7f0-4b73-a4e0-1fcda089356e"
});
client.invoke('routeTo', 'ticket', 780);
0
1 comment
Christopher Kennedy
It sounds like this is a server-side app with page navigation. In order to create the client object, your app will need to append the
origin
andapp_guid
parameters to the link URL of each page. That will then allow the page to call ZAF API methods. We break this down in greater detail in Accessing Framework APIs.0