Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.63 KB

File metadata and controls

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

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

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.

Syntax

Microsoft.CIFramework.closeTab(tabId, correlationId).then(successCallback, errorCallback);

Parameters

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.

Return value

None

Example

Microsoft.CIFramework.closeTab(tabId, correlationId).then(
function(result) {
return Promise.resolve(result);
},
function(error) {
return Promise.reject(error)
});

[!INCLUDEfooter-include]