+ 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".