Skip to main content
Kishore Talari (Cognizant) 님이 #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개
  1. 2018년 11월 12일 오전 10:10
    Hi,

    You can try below url

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

    Best Regards,

    Sandhya