title | description | ms.date | ms.topic | author | ms.author | ms.custom | ||
---|---|---|---|---|---|---|---|---|
setPresence (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0 | MicrosoftDocs |
Includes reference information such as description, syntax, and parameters for the setPresence method in JavaScript API Reference for Dynamics 365 Channel Integration Framework 2.0. |
04/04/2022 |
reference |
gandhamm |
mgandham |
|
Sets the presence text of the agent in the client session.
Microsoft.CIFramework.setPresence(presenceText)
Name | Type | Required | Description |
---|---|---|---|
presenceText | String | Yes | Presence text for current agent in Omnichannel for Customer Service. For the presence to be set correctly, the string should exactly match the text used in the admin app. To create custom presence, see Configure and manage custom presence. |
Returns a Boolean value of success.
Microsoft.CIFramework.setPresence(custompresence).then(
function (result) {
if(!result)
//code handling when OC Presence is in error
else
//code handling for success
},
function (error) {
reject(error);
});
});
[!INCLUDEfooter-include]