You need to sign in to do that
Don't have an account?
P.T.
Display page layout with recordtype in Lightning Experience
Hello, we have an apex controller method that is called by a NEW button. We are using Lightning Record Pages. The controller redirects to a URL that is supposed to display a Case page layout that is assigned to a recordtype. The recordtype is passed in the URL, but the page still displays the default page layout. Can anyone give an idea why this is happening?
reType = cse.recordTypeId;
returnURL = new PageReference('/500/e?nooverride=1&recordtype=' + rtype);
returnURL.setRedirect(true);
return returnURL;
reType = cse.recordTypeId;
returnURL = new PageReference('/500/e?nooverride=1&recordtype=' + rtype);
returnURL.setRedirect(true);
return returnURL;
--
Magulan Duraipandian
www.infallibletechie.com