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
Understanding nlapiGetNewRecord()
[h=2]The documentation for nlapiGetNewRecord() states:[/h] Available in beforeLoad, beforeSubmit, and afterSubmit user event scripts. This API never reflects any changes set by the system during the submit operation. It only reflects the field and line item (sublist) values submitted by the user.
Note that you are not allowed to submit the current or previous record returned by nlapiGetNewRecord(). Also note that only fields that are changed (submitted) will be available via nlapiGetNewRecord().
I assumed that this API would only reflect the fields that are changed, in other words the ones that you can see in the system notes as Changed via UI. But when I tried this API on an Inventory Item record manually changing just the value of one field, the fields object returned 387 fields. I also tried the following to compare: