Livio
05/22/2020, 2:59 PMstalbert
05/22/2020, 4:46 PMLivio
05/22/2020, 5:11 PMffff**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
define(['N/search', 'N/record', 'N/runtime', 'N/file', 'N/format', 'N/log'],
function(search, record, runtime, file, format, log) {
function beforeSubmit(context) {
var newRecord = context.newRecord;
var name = newRecord.getValue({fieldId: 'name'});
log.debug({
title: 'name',
details: name
})
newRecord.setValue({fieldId:'externalid', value: name})
}
return {
beforeSubmit: beforeSubmit,
};
});
Livio
05/22/2020, 5:12 PMbattk
05/22/2020, 6:30 PMLivio
05/22/2020, 6:56 PMbattk
05/22/2020, 7:35 PM