Modules

filter

 

Objects/Functions

module (N/config)

SuiteScript 2.0

Main Examples

N/config Module
Member Type: Name
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=N/config Module

// Code Example 1
/**
* @NApiVersion 2.x
*/

require(['N/config'],
function(config) {
function setTaxAndEmployerId() {
var companyInfo = config.load({
type: config.Type.COMPANY_INFORMATION
});
companyInfo.setValue({
fieldId: 'taxid',
value: '1122334455'
});
companyInfo.setValue({
fieldId: 'employerid',
value: '123456789'
});
companyInfo.save();
companyInfo = config.load({
type: config.Type.COMPANY_INFORMATION
});
var taxid = companyInfo.getValue({
fieldId: 'taxid'
});
}
setTaxAndEmployerId();
});

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