getPresence (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
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
});
});
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla