Seth Duda
03/11/2024, 3:21 PMSeth Duda
03/11/2024, 3:24 PMrequire(['N/record'], function (record) {
let vendor = record.load({
type: 'vendor',
id: '10671',
isDynamic: true
});
console.log('isindividual 1: ' + vendor.getValue('isindividual'));
vendor.setValue({
fieldId: 'isindividual',
value: 'Company'
});
console.log('isindividual 2: ' + vendor.getValue('isindividual'));
vendor.save({
ignoreMandatoryFields: false,
enableSourcing: true
});
})
Seth Duda
03/11/2024, 3:25 PMSeth Duda
03/11/2024, 3:25 PMSeth Duda
03/11/2024, 3:29 PMSeth Duda
03/11/2024, 3:30 PMbattk
03/11/2024, 3:30 PMbattk
03/11/2024, 3:30 PMbattk
03/11/2024, 3:31 PMSeth Duda
03/11/2024, 3:32 PMSeth Duda
03/11/2024, 3:32 PMShawn Talbert
03/11/2024, 3:39 PMSeth Duda
03/11/2024, 3:41 PMrequire(['N/record'], function (record) {
let vendor = record.load({
type: 'vendor',
id: '[YOUR VENDOR'S ID]',
isDynamic: true
});
vendor.save({
ignoreMandatoryFields: false,
enableSourcing: true
});
})
Seth Duda
03/11/2024, 3:42 PMSeth Duda
03/11/2024, 3:43 PMSeth Duda
03/11/2024, 3:43 PM