I've been trying to use record.setValue but nothin...
# suitescript
z
I've been trying to use record.setValue but nothing seems to happen each time the script is run. Sample:
Copy code
var 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
    });
}