config.Type
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. |
Module |
|
Sibling Object Members |
|
Since |
2015.2 |
Values
Value |
Configuration Page |
---|---|
|
Accounting Periods page (Setup> Accounting > Manage Accounting Periods) For more information about the fields on the page, see Accounting Periods. |
|
Accounting Preferences page (Setup > Accounting > Accounting Preferences) For more information about the fields on the page, see Accounting Preferences. |
|
Company Information page (Setup > Company > Company Information) For more information about the fields on the page, see Company Information. |
|
General Preferences page (Setup > Company > General Preferences) For more information about the fields on the page, see General Preferences. |
|
Enable Features page (Setup > Company > Enable Features) For more information about feature names and IDs, see . |
|
Set Manufacturing preferences page (Home > Manufacturing > Manufacturing Preferences). For more information about the fields on the page, see Manufacturing Preferences. |
|
Tax Periods page (Setup > Accounting > Manage Tax Periods) For more information about the fields on the page, see Tax Periods. |
|
For additional information, see Posting Time Transactions. |
|
For additional information, see Posting Time Transactions. |
|
Set Preferences page (Home > Set Preferences) For more information about the fields on the page, see User Preferences. |
Syntax
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