KevinJ of Kansas
09/14/2020, 1:37 PM(function changeId(){
require(['N/record', 'N/currentRecord'],
function(record, currRec) {
var rec = currRec.get()
var rec = record.load({
type: record.Type.SUBSIDIARY,
id: rec.id
});
var sub = rec.getValue({
fieldID: 'name'});
rec.setValue({
fieldId: 'externalid',
value: sub
});
rec.save();
});
}())
battk
09/14/2020, 1:46 PMbattk
09/14/2020, 1:48 PMKevinJ of Kansas
09/14/2020, 1:48 PMKevinJ of Kansas
09/14/2020, 1:50 PMKevinJ of Kansas
09/14/2020, 1:50 PMKevinJ of Kansas
09/14/2020, 1:50 PMbattk
09/14/2020, 1:52 PMKevinJ of Kansas
09/14/2020, 1:52 PMKevinJ of Kansas
09/14/2020, 1:52 PMbattk
09/14/2020, 1:54 PMKevinJ of Kansas
09/14/2020, 1:54 PMbattk
09/14/2020, 1:54 PMKevinJ of Kansas
09/14/2020, 1:55 PMKevinJ of Kansas
09/14/2020, 1:55 PMmichoel
09/14/2020, 11:09 PMnlapiSubmitField('subsidiary', subsidiaryInternalID, 'externalid', 'subsidiaryExternalId');
michoel
09/14/2020, 11:09 PMmichoel
09/14/2020, 11:11 PM