Hi all, Assume Agent A logged in CTI and closed the browser window without logging off. So it's officially the Agent A is still available to receive call. When the call gets routed to that Agent A, how the exception scenario is handled. I have a similar requirement like this.. Please suggest can we achieve the Pega log off functionality on closing the browser directly. Pega 7.1.8 Thanks Prem
Add a .js file to the PerformExternal harness rule that contains the following:
var oXmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); oXmlHttp.Open("POST", document.forms.action, false); oXmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); oXmlHttp.Send("pyActivity=Code-Security.EndSessionExternal&ReviewFormName=ConfirmExternal");
Very IMPORTANT - The URL has to be that of the document.forms.action and CAN NOT be used with safeURL as it will convert some fo the data. This also has to be a POST request with pyActivity specified in the POST body.
The Activity Code-Security.EndSessionExternal is a copy of Code-Security.EndSession but the first step is changed from Show-HTML to Show-Property. The Show-Property step simply returns "GOOD".