Zaanton
11/13/2018, 3:09 PMvar Customer = record.load({type: context.newRecord.type, id: context.newRecord.id});
var myId = Customer.getValue('custentity_nsl_custid');
if (myId == ''){
Customer.setValue({
fieldId: 'custentity_nsl_custid',
value: Customer.id,
ignoreFieldChange: true
});
}