How to Save Record in SuiteScript2.0 / Equivalent Api of nlapiSubmitRecord()?

Hi All,
Please use below code to save record in SuiteScript2.0:

In SuiteScript1.0:
      nlapiSubmitRecord(record, doSourcing, ignoreMandatoryFields)

In SuiteScript2.0:
       Record.save(options)

Module Used:
       N/record Module


Please comment if you have any question.

Thanks
Abhi




Comments