NetSuite is retiring SuiteScript 1.0, 2.0 and 2.x. Here's how to get your scripts onto 2.1 in time
NetSuite wants every script on SuiteScript 2.1. From 2027.1, 1.0 only gets help for critical issues. In 2028.1 your 2.0 and 2.x scripts start running in the 2.1 engine, and by 2028.2 nothing else is allowed. Here's what tends to break and the order we'd convert in.
part 17 of 17 · Running enterprise platforms wellthe ideaOld SuiteScript versions fade out release by release. 2.1 is the target.
after reading, you can- Work out which of your NetSuite scripts the SuiteScript phase-out touches, and when
- Plan the move to 2.1 in batches, starting with critical processes and integrations
- Spot the 2.1 engine changes that break scripts which look fine in a code read
If someone wrote custom code in your NetSuite account more than a few years ago, it may well be on SuiteScriptdefinitionNetSuite's own scripting language, written in JavaScript. If your account checks an order when someone saves it, or runs a job overnight, that's usually a SuiteScript script. 1.0, 2.0 or 2.x, and Oracle is retiring all three over the next few releases. Count your legacy scripts this quarter, because 1.0 gets critical fixes only from 2027.1 and nothing older than 2.1 is meant to run from 2028.2.
The custom code in your NetSuite account has to move to the newer SuiteScript version before the old ones stop
Most NetSuite accounts carry custom scripts: code that checks an order before it saves, sends invoices to another system or runs a nightly job. Those scripts are written in a version of NetSuite's scripting language called SuiteScript. Oracle now wants everything on version 2.1. Scripts on 1.0 lose normal support first, and by release 2028.2 scripts on 1.0, 2.0 or 2.x are expected to stop running. If yours stop, the things they automate stop too, or start doing them differently.
Think of it as your building switching to a new key system on a published schedule. Old keys keep working for a while, then the locksmith only answers emergencies, and on the last date they stop turning. Every door someone fitted with an old lock over the years needs a new one, and somebody has to find all the doors first.
- Companies with custom SuiteScript in NetSuite
- NetSuite administrators and developers
- Finance teams whose close runs on scripts
- Teams running RESTlets and integrations
- Partners who built scripts for clients
Why the 2027.1 release matters
From 2027.1, if a SuiteScript 1.0 script misbehaves and it isn't a critical issue, Oracle's position is that you convert the script to 2.1 first. So the question changes from "can support help us" to "can we rewrite this before month-end". That's a bad place to be with an invoicing or fulfilment script.
Oracle ties every step to a NetSuite release number and doesn't give calendar dates. NetSuite ships two scheduled version upgrades a year, so 2028.2 is four version upgrades after 2026.2. Check your own account's upgrade dates for each one instead of guessing.
The 2.0 and 2.x scripts are a quieter risk. In 2028.1 they start running in the 2.1 engine by default, whether or not anyone tested them there. The 2.1 engine follows a newer JavaScript standard, and a few things that worked in 2.0 throw errors or return different values in 2.1. A script nobody has opened in years can change behaviour on an upgrade weekend.
-
01 2026.2
SuiteScript 2.1 is the standard. Old scripts still run as before, and Oracle asks you to start converting.
-
02 2027.1
1.0 scripts get fixes for critical issues only. For anything else, you convert first and then ask for help.
-
03 2028.1
New accounts can't deploy 1.0 scripts. 2.0 and 2.x scripts run in the 2.1 engine by default.
-
04 2028.2
Every script has to be on 2.1 by now. Oracle's release note says the old versions won't run, so anything left over just stops.
-
05 Result
Converted and tested scripts carry on. Untouched ones stop, or behave differently in the new engine.
For developers: the version is set by the @NApiVersion JSDoc tag at the top of each file. Scripts tagged 2.0 or 2.x are in scope as well as 1.0, which is the part people tend to miss. The fix for 2.x can be small, but you only know that after a test run.
What changes between the old versions and 2.1
What you'll actually have to deal with when a script moves to 2.1
SuiteScript 2.1 runs ECMAScript 2023. SuiteScript 2.0 runs ECMAScript 5.1. The API is the same between them, but the engine underneath isn't.
Names that later JavaScript editions reserved, such as extends, cause a syntax error in 2.1. In 2.0 the same script ran fine.
Old code often assigns to a variable nobody declared. In strict mode the 2.1 engine throws a ReferenceError for that, where 2.0 let it pass.
Oracle's own example: parseInt('08') gives no value in 2.0 and returns 8 in 2.1. Leading-zero strings like that are common in dates and codes.
In 2.0 a RESTlet post adds a JSON.stringify call on its own. In 2.1 it doesn't, and responses for some content types are formatted differently. Callers that parse the reply can break.
2.1 scripts are debugged in the browser's debugger, not the SuiteScript debugger. Developers who relied on the old one need to relearn the routine.
N/llm and N/pgp work only in 2.1, as does N/crypto/random in server scripts. If you want the AI module, you're on 2.1 anyway.
1.0 calls like nlapiLoadRecord and nlapiSearchRecord give way to N/ modules loaded through define. Oracle publishes a full 1.0 to 2.1 API map.
Some 1.0 functions have no 2.1 equivalent. nlapiYieldScript and recovery points aren't needed any more, subrecords work in a different way, and date add functions such as nlapiAddDays move to plain JavaScript.
You can put a converted 2.1 file on an existing 1.0 script record. NetSuite sets the API version to 2.1, as long as the script type matches. It works in the UI, through SDF and in SuiteBundler updates.
Flip two company preferences and your 2.0 or 2.x server scripts run in the 2.1 engine with no code change. If something breaks, switch them back to 2.0.
If your developers use AI coding tools, Oracle's upgrade skill will read an old script and suggest the 2.1 version. Someone still has to review what it writes, and Oracle says so in its own docs.
The 1.0 scripts are the real work. A 1.0 script is a set of global functions, while 2.1 is modular, so each one needs the define structure, an entry point in the right shape and every call swapped for its module method. Searches and record handling often need rewriting too. Oracle's advice is to start with the simple scripts so the team learns the patterns before it reaches the complicated ones.
The 2.x scripts look easier, and the trap is that they can pass a code read and still return something different at runtime. A parseInt on a leading zero, an undeclared variable or a RESTletdefinitionA script that other systems call over HTTP. If your web shop or warehouse system talks to NetSuite through custom code, there's usually a RESTlet on the NetSuite end. that now returns an object where it used to return a string will only show up when something real runs through it.
One row in Oracle's unmapped list matters to whoever owns integration security. nlobjCredentialBuilder.replace has no 2.1 equivalent, so scripts that build credentials with it need their string handling rewritten by hand. Put those scripts near the top of the list and have the security team review the rewrite.
| Release | SuiteScript 1.0 | SuiteScript 2.0 and 2.x | SuiteScript 2.1 |
|---|---|---|---|
| 2026.2 | Runs, convert as soon as you can | Runs as tagged | The standard for new and existing scripts |
| 2027.1 | Critical issues only. Other problems need conversion first | Runs as tagged | Standard |
| 2028.1 | Can't be deployed in new accounts. Existing accounts can still deploy | Runs as 2.1 by default | Standard |
| 2028.2 | Must be on 2.1 | Must be on 2.1 | The only version |
The 2028.1 row is the one to plan around. Your 2.x scripts change engines on that upgrade whether you're ready or not. Test them before then and the upgrade weekend stays boring.
Your options, side by side
Oracle gives you a choice for each script. You can convert it, test it in the 2.1 engine and then change its tag, or retire it. In most accounts a handful of scripts really matter, many run rarely, and some haven't been touched since whoever wrote them left.
Retiring is underrated. If a script is inactive, duplicated or obsolete, Oracle says to evaluate it for retirement instead of migrating it. Every script you switch off in a sandbox and nobody misses is one less thing to convert and test.
- From 2027.1, a non-critical 1.0 problem has to be converted before support will help, often in a hurry
- Your 2.x scripts change engines in 2028.1 without a test run, so anything that behaves differently shows up in production first
- The work lands in the same releases as other NetSuite deadlines, so the same few people end up doing both
- Scripts written by departed staff or old partners get found when they break
- You pick the order: critical processes and integrations first, the long tail later
- 2.x scripts get tested with the account preference in a sandbox before the engine changes
- Dead scripts get retired instead of converted
- Each batch goes through the release preview like any other change, so upgrades stay quiet
Releases to plan around
- 2025.2Last SuiteCloud CLI for Java
The Java CLI gets its last version. If your deploy scripts still call it, they'll need the Node.js CLI or an IDE plug-in.
- 2026.22.1 becomes the standard
2.1 becomes the version Oracle expects for new and existing scripts. Nothing stops working yet, but the clock has started.
- 2027.11.0 drops to critical-only
Only critical 1.0 issues get help. The Java CLI stops being downloadable with this release.
- 2028.1Engine switch for 2.x
2.0 and 2.x scripts run as 2.1 by default. New accounts can't deploy 1.0 scripts.
- 2028.22.1 only
All new and existing scripts must use SuiteScript 2.1. Legacy versions are expected to stop running.
Integration owners should know the same releases carry another deadline. Oracle's SOAP removal FAQ says no new integrations can use token-based authentication from 2027.1, and SOAP endpoints are disabled with 2028.2. If one team owns your scripts and your integrations, they'll be doing both jobs in the same window.
What to do now, by role
Who does what before 2027.1
- Ask your NetSuite admin or partner how many scripts are on 1.0, 2.0 or 2.x, and which business processes they run.
- Agree who owns the conversion work and budget it now, instead of finding out during a 2028 upgrade.
- Go to Customization > Scripting > Scripts and filter on API Version, or build a saved search that excludes API version 2.1.
- Pull in the owner, script type and description for each one. Then ask the business how badly they'd miss it if it stopped tomorrow.
- Switch suspected dead scripts off in a sandbox and see who notices before you spend time converting them.
- Turn on the two 'Execute as 2.1' preferences in a sandbox, then push real orders and invoices through so the server scripts actually run.
- Start the 1.0 conversions on small, simple scripts. Keep Oracle's API map and sample conversions open while you work, and read its list of calls with no direct match first.
- Retest every RESTlet with real request data and compare the responses with the 2.0 version.
- List the RESTlets and scripts that external systems call, and who holds their credentials.
- Review any script that builds credentials with nlobjCredentialBuilder, since its replace function has no 2.1 version.
- Line up new integrations on REST web services with OAuth 2.0 before 2027.1 stops new token-based ones.
// Example only. 1.0 version: function beforeSubmit(type) { var c = nlapiLoadRecord('customer', id); nlapiLogExecution('AUDIT', 'Checked', id); } // 2.1 version, @NApiVersion 2.1: define(['N/log', 'N/record'], (log, record) => { const beforeSubmit = (context) => { const c = record.load({ type: record.Type.CUSTOMER, id }); log.audit({ title: 'Checked', details: id }); }; return { beforeSubmit }; });
Use the conversion to clean up the account
The order we'd work in
- 01Build the inventory
Use a saved search or a SuiteAnalytics workbook with name, ID, script type, API version and owner. Group by version so 1.0 and 2.x are counted separately.
- 02Give every script an owner
A script with a departed owner is a script nobody will test. Assign each one to a current person before any code changes.
- 03Retire what's dead
Disable inactive and duplicate scripts in a sandbox first. Only convert what someone actually needs.
- 04Test 2.x in the 2.1 engine
Switch the account preferences on in a sandbox and run real transactions through it. Whatever fails gets fixed, and only then does the file's tag change to 2.1.
- 05Convert 1.0 in batches
Start with low-complexity scripts. Test every entry point, sublist, search and record operation, and check that deployments and SDF objects still point at the right files.
- 06Put it all in source control
Deploy converted scripts through SuiteCloud Development Framework with the Node.js CLI, so the next change is reviewable and repeatable.
- 07Tighten access while you're there
Move new integrations to OAuth 2.0, review which roles each RESTlet's callers use, and consider NetSuite's option to require 2FA for all Employee, Vendor and Partner roles.
Most of this is inventory and testing. The code changes for 2.x scripts can be small, and the slow part is getting someone to confirm each script still does what the business expects. If you use Oracle's upgrade skill or another AI tool to convert code, treat its output as a first draft. Oracle itself says validation is a static check and doesn't replace functional testing.
Before: a mixed estate
Scripts on 1.0, 2.0 and 2.x, some with no current owner, deployed by hand or through the Java CLI, with integrations on token-based authentication.
After: everything on 2.1
Everything runs on 2.1 and somebody owns each script. Changes go out through SDF, and new integrations use REST web services with OAuth 2.0.
If a converted script goes wrong
If something breaks after a script moves to 2.1
When a script breaks after moving to 2.1, it's often something small. The old engine let a bit of syntax slide, or a RESTlet now replies in a shape its caller doesn't expect.
- 01Containfirst hour
- If you were testing with the account-level preferences, go to Setup > Company > Preferences > General Preferences. Clear the 2.0 box or set the 2.x preference back to 2.0, and those scripts return to the 2.0 engine.
- If a converted file is the problem and you still have the old one, put it back on the script record through your normal change process.
- 02Find the causefirst day
- Check the script's @NApiVersion tag, the record's Execute As version and the account preferences to see which engine actually ran it.
- Open the script's execution log. A ReferenceError usually means an undeclared variable. A syntax error on upload usually means 2.1 syntax in a file that's still tagged 2.0 or 2.x.
- For a RESTlet, send the same request to the old and new versions. Then compare what comes back, both the body and whether it's a string or an object.
- 03Fixfirst day
- Correct the code, test it in a sandbox in every execution context it runs in, and redeploy.
- If the calling system made assumptions about the response, fix it there as well and retest the whole request.
- 04Learnfirst week
- Add the failure to the test plan for the next batch, and search the rest of the inventory for the same pattern.
- Tell the process owner what broke and what changed, so month-end isn't the first time they hear about it.
Three illustrative situations
- the setup
- A distributor went live on NetSuite years ago. The original partner wrote a few dozen SuiteScript 1.0 scripts for pricing, approvals and invoice emails, and nobody internal has changed them since.
- what happens
- After 2027.1, an invoice email script starts failing on some records. It's not a critical issue, so support's answer is to convert it to 2.1 first, during the close.
- what to do
- Inventory now, retire what's unused, and convert the scripts behind order-to-cash before 2027.1.
- the setup
- A software company wrote all its scripts as 2.x. The team reads 'SuiteScript 1.0 end of life' and decides it's someone else's problem.
- what happens
- On 2028.1 the scripts move to the 2.1 engine by default. One script that parses leading-zero codes with parseInt starts returning different numbers.
- what to do
- Run all 2.x server scripts with the account preference in a sandbox before 2028.1, fix what changes, and retag them 2.1.
- the setup
- An ecommerce platform posts orders to a NetSuite RESTlet written in 2.0. The calling side expects the reply in the shape the 2.0 RESTlet always sent.
- what happens
- After the RESTlet moves to 2.1, the reply is formatted differently and the integration fails to read it.
- what to do
- Retest each RESTlet with real requests, compare responses with the old version, and change the caller or the script before switching.
How Cohash helps
We inventory your scripts by version, owner and business process, retire what nobody uses, and test 2.x scripts in the 2.1 engine in a sandbox. Then we convert the 1.0 scripts in batches, move them into SDFdefinitionSuiteCloud Development Framework. Scripts and customizations live in a project in source control, so a sandbox-to-production move is the same every time and you can see what changed. and run each batch through the release previewdefinitionA copy of your account running the next NetSuite version before production gets it. It's where you find out what an upgrade breaks while there's still time.. Our NetSuite page covers the wider SuiteScript and integration work, you can bring in NetSuite developers for the conversion, or start with an assessment of your account.
What to take from this
- 01
Scripts on 1.0, 2.0 and 2.x all have to move. By release 2028.2, 2.1 is the only version left.
- 02
From 2027.1, non-critical 1.0 problems need converting before support will help.
- 03
2.0 and 2.x scripts switch to the 2.1 engine by default in 2028.1, so test them before then.
- 04
Inventory by API version and owner, retire dead scripts, and convert the rest in batches.
- 05
Retest every RESTlet with real requests before you switch it. A 2.1 RESTlet can format its reply differently, and the system calling it has to cope with that.
- 06
Move off SuiteCloud CLI for Java and plan new integrations on OAuth 2.0 in the same project.
01When does SuiteScript 1.0 stop working?
Oracle only gives release numbers, so check when each one reaches your account. From 2027.1, 1.0 scripts only get help for critical issues. New accounts can't deploy them from 2028.1, and by 2028.2 every script has to be on 2.1.
02Do SuiteScript 2.0 and 2.x scripts need changing too?
Yes. They're part of the phase-out. In 2028.1 they run in the 2.1 engine by default, and by 2028.2 every script must use 2.1. Some may need only the tag changed after testing, and others need code fixes.
03How do I find which scripts are on old versions?
Start in Customization > Scripting > Scripts and filter on API Version. That's fine for a quick look. If you want a list you can keep working from, build a saved search or a SuiteAnalytics workbook that leaves out version 2.1 and shows each script's owner and type.
04Can I test 2.x scripts on 2.1 without editing them?
Yes, for server scripts. Turn on the Execute SuiteScript 2.0 and 2.x Server Scripts as 2.1 preferences under Setup > Company > Preferences > General Preferences, preferably in a sandbox. You can switch them back to 2.0 at any time.
05Do converted 1.0 scripts need new script records?
No. You can replace the file on the existing 1.0 script record with a 2.1 file of the same script type. NetSuite updates the record's API version to 2.1, and this works in the UI, through SDF and in SuiteBundler updates.
06Can AI convert our SuiteScript for us?
It can help. Oracle has a SuiteScript upgrade skill for AI coding tools that analyzes and converts old scripts. Oracle also says you have to review everything it generates, and that its validation step is a static check. You still need to test the real process.
07Does this affect our integrations?
It can. RESTlets moved to 2.1 may format responses differently, so retest each one with its callers. Separately, from 2027.1 new integrations can't use token-based authentication, so build new ones with OAuth 2.0.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Your account's scripts are all tagged @NApiVersion 2.x. A colleague says the phase-out only affects 1.0. What's the risk?
show the answer
B. They move to the 2.1 engine in 2028.1 From 2028.1, 2.0 and 2.x scripts run in the 2.1 engine by default, tested or not. Some code runs differently in that engine, so a parseInt call or an undeclared variable can give a new result.
-
Q2You enabled the account preference to run 2.x server scripts as 2.1, but a client script behaves exactly as before. Why?
show the answer
B. The preference only touches server scripts The preference only applies to eligible server scripts. Client scripts, and records whose Execute As version is 2.0, keep running as before.
-
Q3You're on 2027.1 and an old 1.0 script has a bug, but nothing critical. Support gets the ticket. What happens next?
show the answer
C. Convert the script to SuiteScript 2.1 first From 2027.1, 1.0 is in end-of-life support. Oracle still looks at critical issues, but for anything else you convert the script to 2.1 before asking.