config.Type

Note:

The content in this help topic pertains to SuiteScript 2.0.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.0 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.

Module

N/config Module

Supported Script Types

Server scripts

For additional information, see SuiteScript 2.x Script Types.

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 

          

Related Topics

N/config Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices