SuiteScript 2.1

SuiteScript 2.1 is the latest version of SuiteScript and can be used for server and client scripts. For server scripts, the Graal runtime engine is used. This engine supports ECMAScript 2023 which lets you use new language capabilities and functions in your scripts and may also improve script performance. For client scripts, you can include functions and features supported by the ECMAScript version your browser uses.

SuiteScript 2.1 supports several new ECMAScript features you can use in your scripts. For example, the spread operator lets you expand an iterable inside another object or array. You can use the spread operator to combine values from two objects into a new one. For more information about other powerful new language features supported in SuiteScript 2.1, see SuiteScript 2.1 Language Examples.

SuiteScript 2.0 uses a different runtime engine and is based on a less sophisticated version of ECMAScript (ES5.1). For more information about ECMAScript, see JavaScript language resources.

A few notes:

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

Related Topics

General Notices