Set Field Value Of Customer Record

We can set the value of a field in a customer record as shown below

var customerId = nlapiGetContext().getUser();            
var rec = nlapiLoadRecord('customer', customerId);
rec.setFieldValue('<fieldid>', 'T');            
nlapiSubmitRecord(rec);  

Leave a comment

Your email address will not be published. Required fields are marked *