title | description | ms.date | ms.topic | author | ms.author | ms.custom | ||
---|---|---|---|---|---|---|---|---|
closeTab (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0 | MicrosoftDocs |
Includes reference information such as description, syntax, and parameters for the closeTab method in JavaScript API Reference for Dynamics 365 Channel Integration Framework 2.0. |
07/18/2023 |
reference |
gandhamm |
mgandham |
|
Note
Use this API only when the focused session belongs to the provider or if it is the home or default session.
Closes the specified app tab in the current session.
Microsoft.CIFramework.closeTab(tabId, correlationId).then(successCallback, errorCallback);
Name | Type | Required | Description |
---|---|---|---|
tabId | String | Yes | Name of the event whose handler needs to be invoked. |
correlationId | GUID | No | Used to group all related API calls together for diagnostic telemetry. |
successCallback | Function | No | A function to call when a record is retrieved. |
errorCallback | Function | No | A function to call when the operation fails. |
None
Microsoft.CIFramework.closeTab(tabId, correlationId).then(
function(result) {
return Promise.resolve(result);
},
function(error) {
return Promise.reject(error)
});
[!INCLUDEfooter-include]