I need to place an externalid on a custom record w...
# suitescript
m
I need to place an externalid on a custom record within a 2.0 script. When I build the externalid and do a setValue on the record, everything appears to work however, after the record is saved, the externalid is missing. I have tried setting the value with a client script and a user event script; same results. Anyone have thoughts on how this might work?
l
record.submitFields({ type : 'custrecord_abc', id : 4, values: { externalid: 'aa' }, options: { enableSourcing: false, ignoreMandatoryFields : true } });
that works client side.
m
Thanks for the response. Looks like that would work but I am attempting to build the externalid on new records as they are created and am having trouble acquiring an internalid, required by the record.submitFields function, according to Help.