title | description | ms.date | ms.topic | author | ms.author | ms.custom | ||
---|---|---|---|---|---|---|---|---|
getAllSessions (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0 | MicrosoftDocs |
Includes description, syntax, and parameter information for the addHandler method in JavaScript API Reference for Channel Integration Framework 2.0. |
07/11/2023 |
reference |
gandhamm |
mgandham |
|
[!includeapplies-to-v2]
[!includesession-api-omnichannel]
Returns an array of session identifiers for a provider.
Microsoft.CIFramework.getAllSessions().then(successCallback, errorCallback);
Name | Type | Required | Description |
---|---|---|---|
successCallback | Function | No | Call when the promise is resolved |
errorCallback | Function | No | Call when the promise is rejected |
Promise with the value as array of session IDs, which are created by the provider and still at active state.
Microsoft.CIFramework.getAllSessions().then(
function (result) {
// result will have array of session Ids, which are created by the provider and still at active state.
console.log(result)
},
function (error) {
// code handling for promise failure
console.log(error)
});
[!INCLUDEfooter-include]