function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TamilTamil 

Create a record based on Record type.

I have a controller which is calling a VF page based on Reocord type. I have to patch the existing code with new recordtype which should call the standard page layout. I used 
PageReference('/02e/e?retURL='+Apexpages.currentPage().getParameters().get('retURL')+'&recordType='+RecordTypeId);
I'm getting URL No Longer Exists message. I need help in fixing this issue.
Shashi PatowaryShashi Patowary
Hi,

Can you please send the generated URL.I tried this URL in my dev org and it's working fine -

https://ap1.salesforce.com/a02/e?retURL=Fa029000000bVwbS&recordType=01290000001MCrN

Thanks,
Shashi