Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 971 Bytes

File metadata and controls

33 lines (22 loc) · 971 Bytes
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

canCreateTab (app profile manager)

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."

Syntax

Microsoft.Apm.getFocusedSession().canCreateTab();

Return value

A Boolean value of true if a new tab can be created; otherwise, false.

Example

const session = Microsoft.Apm.getFocusedSession();
console.log(session.canCreateTab());

[!INCLUDEfooter-include]