How to navigate to email editor with some parameters when user click on custom button on record detail page. I have VF page which redirects to email composer. Button working in classic but in lightning its redirected to classic view, how to navigate to lightning view.

PageReference pageRef = new PageReference('/email/author/emailauthor.jsp?retURL=/'+application.Id+'&template_id=00X90000000fUvv&&p3_lkid='+application.Id+'&&p2_lkid='+application.Account_ID__c);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.