config.Type

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Enum Description

Holds the string values for supported configuration pages. Use this enum to set the value of the NetSuite configuration page you want to access in the config.load(options) method.

Module

N/config Module

Sibling Object Members

N/config Module Members.

Since

2015.2

Values

Value

Configuration Page

ACCOUNTING_PERIODS

Accounting Periods page (Setup> Accounting > Manage Accounting Periods)

For more information about the fields on the page, see Accounting Periods.

ACCOUNTING_PREFERENCES

Accounting Preferences page (Setup > Accounting > Accounting Preferences)

For more information about the fields on the page, see Accounting Preferences.

COMPANY_INFORMATION

Company Information page (Setup > Company > Company Information)

For more information about the fields on the page, see Company Information.

COMPANY_PREFERENCES

General Preferences page (Setup > Company > General Preferences)

For more information about the fields on the page, see General Preferences.

FEATURES

Enable Features page (Setup > Company > Enable Features)

For more information about feature names and IDs, see .

MANUFACTURING PREFERENCES

Set Manufacturing preferences page (Home > Manufacturing > Manufacturing Preferences).

For more information about the fields on the page, see Manufacturing Preferences.

TAX_PERIODS

Tax Periods page (Setup > Accounting > Manage Tax Periods)

For more information about the fields on the page, see Tax Periods.

TIME_POST

For additional information, see Posting Time Transactions.

TIME_VOID

For additional information, see Posting Time Transactions.

USER_PREFERENCES

Set Preferences page (Home > Set Preferences)

For more information about the fields on the page, see User Preferences.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/config Module Script Sample.

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

          

General Notices