Custom Button URL Hacking in Salesforce Lightning Experience vs Salesforce Classic
To Show Record Type Selection in Record’s Create Page with Default Field Values:-
/lightning/o/Contact/new?useRecordTypeCheck=1
Set Default Record Type value in Record’s Create Page with Default Field Values:-
Note: recordTypeId (here recordTypeId follow the case sensitive i.e T and I capital letters)
/lightning/o/Contact/new?recordTypeId=0122v000001SmZ2AAK&
defaultFieldValues=
LastName={!URLENCODE(Account.Name)},
Phone={!Account.Phone},
Languages__c=English
Set Date field values in Record’s Create Page with Default Field Values:-
/lightning/o/Contact/new?recordTypeId=0122v000001SmZ2AAK&
defaultFieldValues=
LastName={!URLENCODE(Account.Name)},
Phone={!Account.Phone},
DateOfBirth__c={!TEXT(TODAY() )}
To pass the date value to convert as String value using TEXT() – https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_lc_navigate_to_record_dfv.htm
參考網址: