Modules

filter

 

Objects/Functions

module (N/config)

SuiteScript 2.0

config.load(options)

{config}.load({type: {enum*},isDynamic: {boolean true | false}})

N/config Module
config.load()
Method Description: Method used to load a record.Record object that encapsulates the specified NetSuite configuration page. After the configuration page loads, all preference names and IDs are available to get or set. For more information, see Preference Names and IDs. You can use the following Record Object Members to get and set preference names and IDs: Record.getField(options) Record.getFields() Record.getText(options) Record.getValue(options) Record.setText(options) Record.setValue(options)
Returns: record.Record
Supported Script Types: Server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/config Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=config.load(options)

Example:

// Code Example 1
//Add additional code
//...
var configRecObj = config.load({
type: config.Type.COMPANY_INFORMATION
});
configRecObj.setText({
fieldId: 'fiscalmonth',
text: 'July'
});
configRecObj.save();
//...
//Add additional code

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