How to use configuration api in SuiteScript2.0?

Hi All,

Please use below code to Load Configuration in SuiteScript2.0:

In SuiteScript1.0:

      nlapiLoadConfiguration(type)

In SuiteScript2.0:

       config.load(options)

Module Used:

       N/config Module

Please comment if you have any question.

Thanks

Abhi



Note: if you created any script parameter or preference then this API is very useful.
This Api is also useful to get Netsuite's Company preference etc also like Date time format is used by company.

Comments