SuiteScript 2.x Record Modules
With SuiteScript 2.x, you use the N/record Module and N/currentRecord Module to script with records.
In server scripts, use the N/record Module. See the following topics for examples of working with records in server scripts:
In client scripts:
-
Use N/currentRecord Module methods to interact with the record that is active in the current client context.
-
Use the N/record Module to load and interact with remote records.
See the following topics for examples of working with records in client scripts: