Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.save.promise(options)

{Record}.save.promise({enableSourcing: {boolean},ignoreMandatoryFields: {boolean}}).then(function(response){// DO SOMETHING WITH RESPONSE HERE}, function(error){// DO SOMETHING WITH ERROR HERE});

N/record Module
Record.save.promise()
Method Description: Submits a new record asynchronously or saves edits to an existing record asynchronously. This method is not available to subrecords. The parameters and errors thrown for this method are the same as those for Record.save(options). For more information on promises, see Promise Object.
Returns: Promise Object
Supported Script Types: Client-side scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: Transaction records: 20 units Custom records: 4 units All other records: 10 units
Module: N/record Module
Sibling Object Members: Record Object Members
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Record.save.promise(options)

Example:

// Code Example 1
// Add additional code.
//...
var recordId = objRecord.save.promise({
enableSourcing: true,
ignoreMandatoryFields: true
});
//...
// Add additional code.

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4440842328.html