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 allows you to use new language capabilities and functions in your scripts and may also improve script performance. For client scripts, SuiteScript 2.1 scripts can be written to include functions and capabilities supported by the ECMAScript version supported in the type of browser your client scripts are running on.

SuiteScript 2.1 supports several new additional ECMAScript features that you can use in your SuiteScript 2.1 scripts. For example, 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.

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