I have a button called SUBMIT. When I click on this button It will open the Case record creation page with some specified values.
PageReference RecPageRef = new PageReference(System.URL.getSalesforceBaseUrl().toExternalform()+'/500/e?retURL=%2F500%2Fo&cas4_lkid='+AccCase.id+'&cas4='+AccCase.name+'&CF00N1500000E0DE1_lkid='+OppCase.id+'&CF00N1500000E0DE1='+OppCase.name+'&RecordType='+RfiRecordId); RecPageRef.setRedirect(true); system.debug('%%%%%'+RecPageRef); return RecPageRef;
When I click on SUBMIT it is returning
return RecPageRef;. Which is Opening record creation page with some auto-populated values like a clone button. This working fine in Classic I am able to see auto-populated values in classic. But when I Click on this SUBMIT button in lightning, The auto-populated fields are not popping up. It is popping up record creation page without any values.
Can anyone please suggest me how to make this URL Based record creation page works in Lightning?