Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.save(options)

{Record}.save({enableSourcing: {boolean},ignoreMandatoryFields: {boolean}})

N/record Module
Record.save()
Method Description: Submits a new record or saves edits to an existing record. When working with records in standard mode, you must submit and then load the record to obtain sourced, validated, and calculated field values. This method is not available to subrecords. This method has an asynchronous counterpart you can use with client scripts. See Record.save.promise(options).
Returns: A number representing the internal ID of the new or updated record.
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
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(options)

Example:

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

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