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
hasya hasyahasya hasya 

Spring 20 - Navigate to a Record’s Create Page with Default Field Values - How to pass the Recordtype id??

Best Answer chosen by hasya hasya
Iqbal Hossain 1Iqbal Hossain 1
First check whether you are able to see different record types using SOQL.
As a workaround send the 'recordTypeId' prior to setting default values like follows:

/lightning/o/<Object Name>/new?recordtypeId= recordTypeId=<15 digit Id>&
defaultFieldValues=
Field1=value 1,
Field2=value 2