SuiteScript Overview
NetSuite’s SuiteScript scripting language provides full-featured application-level scripting capabilities that support sophisticated procedural logic on both the client and server sides. You can use SuiteScript to extend NetSuite and customize, search for, and process your NetSuite data. A SuiteScript Debugger is also available for debugging server scripts.
SuiteScript 2.x extends the capabilities of SuiteScript 1.0 with an API architecture familiar to JavaScript developers. SuiteScript 2.x highlights include:
-
Modularity — supports encapsulation, provides intuitive code organization, and ensures there are no global variable or method naming conflicts.
-
Automatic dependency management — alllows you to concentrate on logic instead of dependencies and load order.
-
JavaScript — designed to support most standard JavaScript providing you programmatic access to NetSuite functionality.
-
Third-party JavaScript libraries — use custom modules to load your preferred third-party JavaScript libraries.
-
Enhanced functionality — support for all HTTP content types, SFTP file transfer, data caching, search pagination, flat file streaming, enhanced encryption, decryption, and hashing.
-
Asynchronous script processing — provides promises and map/reduce scripts; a structured framework for server scripts processing a large number of records
SuiteScript includes a list of reserved words that can't be used as variable names or function names in your scripts. For more information, see SuiteScript Reserved Words.
For an overview of SuiteScript features, see the following help topics:
As of 2020.1, SuiteScript 2.1 as the latest version of SuiteScript. For more information about SuiteScript 2.1, see the help topics SuiteScript 2.1, Executing Scripts Using SuiteScript 2.1, and SuiteScript Versioning Guidelines.
SuiteScript Help Topics in the Help Center
Watch the SuiteScript Help Overview video to learn what SuiteScript topics are available in the Help Center and where they are located:
The SuiteScript Records Guide and the SuiteScript Developer Guide are also available. The SuiteScript Records Guide includes information about the NetSuite records you can use with SuiteScript. The SuiteScript Developer Guide includes topics to help you:
-
Set up your development environment
-
Learn how to use SuiteScript to work with UI objects, script parameters, and SuiteScript IDS
-
Learn about governance limits imposed on the SuiteScript API
-
Learn about monitoring, auditing, and logging capabilities available in SuiteScript
-
Learn about the SuiteScript Debugger
To learn more about SuiteScript 2.x (SuiteScript 2.0 and SuiteScript 2.1), see the following help topics:
SuiteScript Code Samples Catalog
This SuiteScript Code Samples Catalog contains code samples that you can use for reference. You can copy and update them to fit your needs. For more information, see SuiteScript 2.x Code Samples Catalog.