title | description | author | ms.author | ms.date | ms.topic |
---|---|---|---|---|---|
canCreateTab method (app profile manager) JavaScript API Reference | MicrosoftDocs |
Learn about the canCreateTab API of app profile manager in Customer Service workspace. |
gandhamm |
mgandham |
10/01/2021 |
reference |
Allows you to check whether a new tab can be created in a session.
Note
Customer Service workspace lets you open up to 10 tabs simultaneously, in a session. If you open more than 10 tabs, then the following message is displayed: "Maximum tabs reached. Close a tab in this session before opening another."
Microsoft.Apm.getFocusedSession().canCreateTab();
A Boolean value of true if a new tab can be created; otherwise, false.
const session = Microsoft.Apm.getFocusedSession();
console.log(session.canCreateTab());
[!INCLUDEfooter-include]