function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Javeed ShaikJaveed Shaik 

How to open a case tab of a console app as a classic tab

How to open a case tab of a console app as a classic tab

Thanks in advance
 
Igor Androsov 22Igor Androsov 22
Console app is still in beta transition to Lightning so for now it is Classic but styled with SLDS elements. Are you trying to open Case in a New Tab outside of console? That is not possible with Console you are locked to subtabs. You may open a new browser target or a subtab using code below assuming you set up your page for Console support
<apex:includeScript value="/soap/ajax/38.0/connection.js"/>
<apex:includeScript value="/support/console/38.0/integration.js"/>


        window.onload = function(){
           testOpenSubtab();
        };

        function testOpenSubtab() {
            //First find the ID of the primary tab to put the new subtab in
            sforce.console.getEnclosingPrimaryTabId(openSubtab);
        };

        var openSubtab = function openSubtab(result){
            var primaryTabId = result.id;
            sforce.console.setTabTitle('Test Tab');
        };