Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Dynamic Record Mode on SS 2.0 beforeSubmit
Hello Gurus,
is there any option to add dynamically two new lines on the current record on beforeSubmit in SS 2.0?
Currently I'm using N/record (record) module on afterSubmit and I'm loading the newly submitted record using:
recordObj = record.load({
type: contextRecord.type,
id: contextRecord.id,
isDynamic: true,
});
recordObj .selectNewLine({
sublistId: 'item',
});
recordObj .setCurrentSublistValue({
sublistId: 'item'
fieldId: 'item',
value: 1
});
recordObj .commitLine({sublistId: 'item'});
recordObj .save();
Can this be done on beforeSubmit in dynamic mode, I want to avoid record loading?
Thanks