Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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.