Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Newbie Question on script context
I am having a challenge with a beforeSubmit script.
The script executes just fine when it is called from the UI or from Web Services.
If a mass update is done, the script fails. It seems like nlapiGetNewRecord() does not have context when running a mass update. Or maybe it is that the custom items fields do not have nlapiGetNewRecord() context
I am calling the following in the script.
var newItem = nlapiGetNewRecord()
var oldItem = nlapiGetOldRecord()
The nlapiGetNewRecord works in UI and web services but it appears to fail when doing a mass update.
Any ideas what I am doing wrong?