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 and nlapiGetNewRecord()
I had an opportunity to try the new dynamic mode functionality and after many hours I gave up and could not get it to work.
The documentation shows two examples for using dynamic mode with nlapiGetNewRecord in a beforesubmit script to update some line items. This is my exact use case. Unfortunately, both examples have errors and even when I corrected them nothing was dynamically calculated for me.
In example 2 of the Working with Records page, the last line rec.commitLineItem('item') should be record.commitLineItem('item') and in the example under the following section the last line is record.commitCurrentLineItem('item'). I can't find a commitCurrentLineItem API. I believe it is supposed to be commitLineItem. Even with these changes neither example results in anything calculating dynamically.