pen one
04/23/2021, 1:53 PMrequire(['N/record'], function(record) {
var recObj = record.copy({
type: 'customrecord352',
id: 1407,
isDynamic: true,
defaultValues: {
name: 'test'
}});
var recordId = recObj.save();
});
Edit: Figured our where I went wrong. Instead of setting the defaultValue I set the field value before the save.Sandii
04/23/2021, 3:00 PMbattk
04/23/2021, 3:02 PMrecord.name
is what you would use if you wanted to set the default value of a body field