Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Invoked when the presence status of an agent has changed manually or programmatically.
eventData
The onPresenceChange event takes the following eventData:
| eventData | Example |
|---|---|
{"presenceId": <guid>} |
{"presenceId": "efdeb843-c07a-e811-8162-000d3aa11f50"} |
{"presenceInfo":{"basePresenceStatus":<string>, "presenceColor":<string>, "presenceId":<string>,"presenceText":<string>}} |
{"presenceInfo":{"basePresenceStatus: "BUSY", "presenceColor": "#ff0000", "presenceId":"efdeb843-c07a-e811-8162-000d3aa11f50", "presenceText": "Busy"}} |
Example
handlerFunction = function (eventData) {
var obj = JSON.parse(eventData);
var presence = obj.presenceInfo.presenceText;
}
window.Microsoft.CIFramework.addHandler("onPresenceChange", handlerFunction);
Related information
setClickToAct method
addHandler method
removeHandler method
getPresence method
setPresence method