getFocusedTab (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
Returns the focused tab's identifier in a focused session, if the session belongs to the channel provider.
Syntax
Microsoft.CIFramework.getFocusedTab().then(successCallback,errorCallback);
Parameters
Name | Type | Required | Description |
---|---|---|---|
successCallback | Function | No | A function to call when the operation succeeds. |
errorCallback | Function | No | A function to call when the operation fails. |
Return value
Promise with the value as String
Example
Microsoft.CIFramework.getFocusedTab().then(
function success(result) {
console.log(result);
// perform operations on tab id value
},
function (error) {
console.log(error.message);
// handle error conditions
}
);
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for