How to redirect user to record detail page from Visualforce page in Salesforce Console?

Sample Code:

public PageReference redirect() { 
    String acctId = ApexPages.currentPage().getParameters().get('acc');
    PageReference pr = new PageReference('salesforce_url/console#%2F' + accId);
    return pr; 
}

Cheers!!!

No comments:

Post a Comment