Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.66 KB

File metadata and controls

50 lines (37 loc) · 1.66 KB
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
dyn365-a11y
dyn365-developer

getAllSessions (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0

[!includeapplies-to-v2]

[!includesession-api-omnichannel]

Returns an array of session identifiers for a provider.

Syntax

Microsoft.CIFramework.getAllSessions().then(successCallback, errorCallback);

Parameters

Name Type Required Description
successCallback Function No Call when the promise is resolved
errorCallback Function No Call when the promise is rejected

Return value

Promise with the value as array of session IDs, which are created by the provider and still at active state.

Example

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]