Skip to content

Commit 735df52

Browse files
committed
🗃 added example field id to update on record
1 parent 36b801f commit 735df52

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/FileCabinet/SuiteScripts/CS/customModule_CS.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ function csExampleModule_CS(log, aModule, bModule) {
6161
log.debug({ title: `Vendor Prefix Set`, details: { VendorPrefix } });
6262
if (!scriptContext.hasOwnProperty('currentRecord'))
6363
throw 'MISSING_RECORD_PROPERTY';
64-
bModule.set_CustomFieldValue(scriptContext.currentRecord, VendorPrefix);
64+
bModule.set_CustomFieldValue({
65+
currentRecord: scriptContext.currentRecord,
66+
fieldId: 'custbody_example-id-1',
67+
value: VendorPrefix,
68+
});
6569
log.audit(`Vendor prefix saved`);
6670
} catch (err) {
6771
log.error({ title: 'csExampleModule_CS.pageInit()', details: err });

0 commit comments

Comments
 (0)