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.transform.promise(options) Method
The record.transform.promise(options) method is used to transform one record type into another (for example, transforming a sales order into an invoice) and works asynchronously using JavaScript Promises.
Syntax
record.transform.promise(options)
Parameters
options (Object): An object specifying how the transformation should occur. Required properties: