setPresence (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
Sets the presence text of the agent in the client session.
Syntax
Microsoft.CIFramework.setPresence(presenceText)
Parameters
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. |
Return value
Returns a Boolean value of success.
Example
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);
});
});
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應