Hi,
The record type Id field is case-sensitive when we want to auto-populate with record type.
Sample Example:
var recTypeId = '012XXXXXXXX';
var createContact= $A.get("e.force:createRecord");
createContact.setParams({
"entityApiName": 'Contact',
"recordTypeId":recTypeId,
"defaultFieldValues": {
'LastName':'balaji',
'FirstName':'malem'
}
});
createContact.fire();
Note:
Always add recordTypeId before defaultFieldValues as above.
No comments:
Post a Comment