Édition

Partage via


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());