create record with pre-populated values in lex
the documentation on this spring20 feature is so bad its almost like it doesnt exist at all.
this is all you get - one example and 2 notes
some missing ‘details’
a) date fields need to be converted to string using the TEXT formula
b) you can pass RecordTypeId (case sensitive) via a separate url parameter, but not in the default field values. the docs just say its not supported yet and strange things may happen. what is the point of having this feature without supporting record types? insert snide remark about confetti here.
c) the nooverride=1 parameter works in lex. if you have overridden the ‘new’ button on the object with say a visualforce page for example so people can only create opps from contacts or accounts, you can pass nooveride=1 and it will let you bypass that page.
Continue reading →