Transitioning from SuiteScript 2.0 to SuiteScript 2.1
SuiteScript 2.1 is now the standard scripting version for all new and existing scripts. You must transition all existing SuiteScript 2.0 and 2.x scripts as soon as possible before the 2028.2 release. The functionality provided by the SuiteScript API is the same for SuiteScript 2.0 and SuiteScript 2.1. However, because SuiteScript 2.1 uses a different runtime engine, some SuiteScript 2.0 capabilities function differently when a script runs using SuiteScript 2.1.
To update a script to SuiteScript 2.1, set the @NApiVersio n JSDoc tag to 2.1. This change enables validation for SuiteScript 2.1 syntax and lets you use SuiteScript 2.1 language features. If you want to test all SuiteScript 2.0 or 2.x server scripts in your account in a SuiteScript 2.1 environment, you can enable the account-level feature, which allows those scripts to execute using the SuiteScript 2.1 runtime for testing and compatibility purposes. For more information, see Enabling SuiteScript 2.1 at the Account Level.
See the following help topics for guidance on transitioning your scripts from SuiteScript 2.0 to SuiteScript 2.1: