I would like to open a tab of a Contact in a Service Console:
sforce.console.openPrimaryTab(null, CONTACT_ID, true);
I can't make it though when it's already opened. I receive an error in browser's console:
openPrimaryTab: Opening a duplicate tab is not allowed.
I know I can focus the tab having its
Id but I don't always have it -
sometimes there are some tabs opened from previous sessions or I opened one manually.
I thought that I maybe could somehow distinguish already opened tabs but I looked through a Salesforce Console Developer Guide and I didn't find anything useful.