A new version of SuiteScript, SuiteScript 2.1, is now available. This new version uses a different runtime engine than SuiteScript 2.0, includes new language capabilities and functionality, and supports all script types.
SuiteScript 2.1 supports features planned for future editions of the ECMAScript specification using ES.Next. ES.Next introduces several new language features that you can use in your SuiteScript 2.1 scripts. For example, ES.Next introduces the spread operator, which lets an iterable element spread or expand inside a receiver. You can use the spread operator to spread the values from two Objects into one new Object. For more information about other powerful new language features supported in SuiteScript 2.1, see SuiteScript 2.1 Language Examples.
A few notes:
SuiteScript 2.1 uses the same reserved words as SuiteScript2.0. For more information, see SuiteScript Reserved Words.
The functionality provided by the SuiteScript API is the same for SuiteScript 2.0 and SuiteScript 2.1. For more information about this API, see SuiteScript 2.x API Reference.
The SuiteTax Engine does not support SuiteScript 2.1. To use the full functionality of the SuiteTax Engine, you must use SuiteScript 2.0. For more information about the SuiteTax Engine, see SuiteTax Engine.
For more information about how to execute your script as a SuiteScript 2.1 script, see Executing Scripts Using SuiteScript 2.1.
Related Support Article
- SuiteScript 2.x API Introduction
- SuiteScript 2.x Script Types
- SuiteScript 2.x Record Actions and Macros
- SuiteScript 2.x JSDoc Validation
- SuiteScript 2.x Entry Point Script Creation and Deployment
- SuiteScript 2.x Custom Modules
- SuiteScript 2.x Scripting Records and Subrecords
- SuiteScript 2.x Custom Pages