SuiteScript 2.1 JSDoc Tags
The following table describes the available SuiteScript 2.1 JSDoc tags. SuiteScript 2.1 entry point scripts must include the following two tags:
-
@NApiVersion -
@NScriptType
For more information about entry point validation, including possible errors, see SuiteScript 2.1 Entry Point Script Validation.
|
JSDoc Tag |
Possible Values |
Required/ |
Description |
|---|---|---|---|
|
|
|
Required for entry point scripts Optional for custom modules |
This tag is used in two ways:
Scripts that use SuiteScript 2.0 or 2.x will soon be removed in the NetSuite 2028.2 release. You must update those scripts to SuiteScript 2.1 to ensure continued compatibility. For more information, see Transitioning To SuiteScript 2.1. If the Execute SuiteScript 2.x Server Scripts As preference is set to 2.1, compatible |
|
|
|
Required for entry point scripts |
This tag identifies the type of script defined in the file. |
|
|
|
Optional |
This tag is used to control access to scripts and custom modules.
The default value is
Note:
If your script contains SuiteScript 2.1 syntax that includes classes and will be included in a bundle, the @NModuleScope JSDoc tag must be set to For more information about each of these values, see SuiteScript Module Scope and Access Control. |
Related Topics
- SuiteScript 2.1 JSDoc Validation
- SuiteScript 2.1 JSDoc Comment Blocks
- SuiteScript Module Scope and Access Control
-
SuiteScript Versioning Guidelines