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
sheetal agrawalsheetal agrawal 

open a custom page in new tab inside Console

Hi,

I need to open a custom page in new tab inside Console-
Below code is opening the tab in complete new tab i.e ouside console in salesforce

if(sObjName=='Case'){
                SObject record = Database.query('Select CaseNumber From ' + sObjName + ' Where Id = :subOrderId');
                extractName= record.get('CaseNumber');
                c.Re_send_email_Link__c='<a href=' +System.URL.getSalesforceBaseUrl().toExternalForm()+'/'+subOrderId+' >'+extractName+'</a> <br/>';



Please help  
Nishant Prajapati 10Nishant Prajapati 10
user target attribute of <a> tag and set target="_blank".