Skip to main content
Kishore Talari (Cognizant) a posé une question dans #Apex
How to redirect account record detail page using below code

public PageReference save(string id) {

        System.debug('Entered');

        PageReference nextPage = new PageReference('/'+id+'/view');

        nextPage.setRedirect(true);

        return nextPage;

}

Thanks.........
6 réponses
  1. 12 nov. 2018, 10:10
    Hi,

    You can try below url

    'lightning/r/My_Custom_SObject__c/' + customRecord.Id + '/view'

    Best Regards,

    Sandhya