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());
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for