In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/record module, New to NetSuite | N/record Module Overview, which is used to interact with records. Now, we will take a closer look at one of the members of N/record: record.load.promise(options) Method
The method record.load.promise(options) is the Promise-based version of record.load(options), allowing for asynchronous loading of records, which is especially useful in SuiteScript 2.x SuiteScript 2.1 or contexts that benefit from async programming.
Syntax
var recordPromise = record.load.promise(options);
Parameters (options object):