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.
Returns the presence text of the agent in the client session​.
Syntax
Microsoft.CIFramework.getPresence();
Parameters
None.
Return value
Promise with the presence text of the current agent, as String.
Example
function getPresence() {
return new Promise((resolve, reject) => {
Microsoft.CIFramework.getPresence().then(
function (result) {
if (result == "FAILED")
//your code handling for failure
else {
//your code for success
}
return result;
},
function (error) {
// code handling for promise failure
});
});