Our extensions: Salesforce NetSuite NEW Zoho SOON Session Manager NEW

Guides · NetSuite · 7 min read · Updated 28 Nov 2026

SuiteScript 2.1 upgrade checklist

Oracle made SuiteScript 2.1 the standard in 2026.2. From 2027.1 SuiteScript 1.0 gets critical-issue support only, and from 2028.2 every script must be 2.1. This checklist helps you plan the move.

1. Make a list of every script

  1. Customization → Scripting → Scripts. Show the API Version column and sort by it.
  2. For each script, note its type (User Event, Client, Scheduled, Map/Reduce, Suitelet, RESTlet…), the number of active deployments, and who owns it.
  3. Bundled and SuiteApp scripts are updated by their vendor. Ask them for a 2.1 date.

2. SuiteScript 1.0 scripts: rewrite with N/ modules

1.0 code (nlapi… functions) can't just be re-tagged. Common replacements:

SuiteScript 1.0SuiteScript 2.x
nlapiLoadRecordrecord.load
nlapiSubmitRecordrec.save()
nlapiSubmitFieldrecord.submitFields
nlapiSearchRecordsearch.create(...).run() or query.runSuiteQL
nlapiLookupFieldsearch.lookupFields
nlapiGetContextruntime.getCurrentScript() / runtime.getCurrentUser()
nlapiLogExecutionlog.debug / log.error
nlapiRequestURLhttps.get / https.post
nlapiSendEmailemail.send

The entry points change too: 1.0 uses function names set on the script record, 2.x returns an object such as { beforeSubmit, afterSubmit } from define.

3. SuiteScript 2.0 scripts: change the tag and test

  1. Change @NApiVersion 2.0 (or 2.x) to @NApiVersion 2.1.
  2. 2.1 runs on a newer JavaScript engine (ES2019+). You can now use const, let, arrow functions, template strings and async/await with promise APIs.
  3. Look for code that relied on the old engine's loose behaviour: non-standard syntax such as for each…in, date strings parsed with new Date('…') in a non-ISO format, duplicate variable names, and libraries written for older JavaScript.
  4. Client scripts run in the browser and already behave like 2.1, so they are usually the easiest.

4. Test safely

Scan every script automatically (SuiteLens)

SuiteLens has a SuiteScript 2.1 upgrade readiness scanner. It reads every script in the account, gives each a score, lists the patterns that will break, and shows a 1.0 → 2.x API map for the functions it finds. It is read-only, so it never changes your scripts.

SuiteLens – Admin & Developer Toolkit for NetSuite
SuiteLens is free and read-only. It uses your own NetSuite login and role, works in Chrome and Edge, and your data stays in your browser.

Add to Chrome, free About SuiteLens

Related guides

How to see who changed a field in NetSuite How to find field internal IDs in NetSuite How to run a SuiteQL query in NetSuite All guides →