How to create Error in Netsuite Script 2.0?

Hi All,

Mostly in User Event Before Submit or any other place where you want to show Netsuite Customer Error we use nlapiCreateError() method .
Now in SuiteScript2.0 we have to use N/error Module and error.create(options)
where "error" is parameter which you will define in start for error module.

In Suite Script 1.0 :

              nlapiCreateError(code, details, suppressNotification)

In Suite Script 2.0:
              error.create(options)

Module Used:
               N/error Module

Please comment below in case you have any question.

Thanks
Abhi

Comments