EngineeringERP

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.

Cohash Enterprise Platforms Practice November 2026 12 min read 7 chapters 3-question check
part 17 of 17 · Running enterprise platforms well
2.1 standard 1.0 criticalonly 2.x runs as2.1 2.1 only 2026.2 2028.2

the 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.

in plain wordsFirst restriction lands in 2027.1

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 like this

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.

who should care
  • 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
chapter 01

Why the 2027.1 release matters

2026.2SuiteScript 2.1 becomes the standard for new and existing scripts
2027.1SuiteScript 1.0 support covers critical issues only
2028.12.0 and 2.x scripts run as 2.1 by default
2028.2All new and existing scripts must use SuiteScript 2.1

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.

what changesOne legacy script, release by release. The 2028.1 engine change catches people outEach release narrows what an old script can rely on. The safe moment to convert is before 2028.1 changes the engine for you.
  1. 01 2026.2

    SuiteScript 2.1 is the standard. Old scripts still run as before, and Oracle asks you to start converting.

  2. 02 2027.1

    1.0 scripts get fixes for critical issues only. For anything else, you convert first and then ask for help.

  3. 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.

  4. 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.

  5. 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.

chapter 02

What changes between the old versions and 2.1

What you'll actually have to deal with when a script moves to 2.1

changedA newer JavaScript engine

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.

changedStricter about reserved words

Names that later JavaScript editions reserved, such as extends, cause a syntax error in 2.1. In 2.0 the same script ran fine.

changedUndeclared variables fail

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.

changedparseInt behaves differently

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.

changedRESTlet responses change

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.

changedDebugging moves to the browser

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.

new2.1-only modules

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.

removed1.0 global functions

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.

removedCalls with no direct match

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.

newSwap the file, keep the record

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.

newTest 2.x without touching code

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.

newAn upgrade skill for AI coding tools

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.

tableWhere each script version stands, release by release. The 2.1 column is the target.
ReleaseSuiteScript 1.0SuiteScript 2.0 and 2.xSuiteScript 2.1
2026.2Runs, convert as soon as you canRuns as taggedThe standard for new and existing scripts
2027.1Critical issues only. Other problems need conversion firstRuns as taggedStandard
2028.1Can't be deployed in new accounts. Existing accounts can still deployRuns as 2.1 by defaultStandard
2028.2Must be on 2.1Must be on 2.1The 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.

chapter 03

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.

side by sideTwo ways to handle the phase-out. Only one of them lets you choose when the work happens.
Leave it until 2028
  • 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
Convert in planned batches now
  • 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

  1. 2025.2
    Last 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.

  2. 2026.2
    2.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.

  3. 2027.1
    1.0 drops to critical-only

    Only critical 1.0 issues get help. The Java CLI stops being downloadable with this release.

  4. 2028.1
    Engine switch for 2.x

    2.0 and 2.x scripts run as 2.1 by default. New accounts can't deploy 1.0 scripts.

  5. 2028.2
    2.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.

chapter 04

What to do now, by role

Who does what before 2027.1

Business ownerthis month
  • 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.
NetSuite administratorthis month
  • 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.
Developersthis quarter
  • 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.
Integration and security ownersthis quarter
  • 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.
Oracle's own conversion example, shortened. The 1.0 global calls turn into module methodsexample output
// 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 };
});
chapter 05

Use the conversion to clean up the account

The order we'd work in

  1. 01
    Build 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.

  2. 02
    Give 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.

  3. 03
    Retire what's dead

    Disable inactive and duplicate scripts in a sandbox first. Only convert what someone actually needs.

  4. 04
    Test 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.

  5. 05
    Convert 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.

  6. 06
    Put 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.

  7. 07
    Tighten 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

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.

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. 01 · PEOPLE AND SYSTEMS 02 · NETSUITE ACCOUNT 03 · DELIVERY record events calls deploys Users and workflows External systems token-based auth Legacy scripts 1.0, 2.0, 2.x RESTlets 2.0 response handling Manual edits or SuiteCloud CLI for Java © Cohash · cohash.com
01 · PEOPLE AND SYSTEMS02 · NETSUITE ACCOUNT03 · DELIVERY Users and workflows Users andworkflows External systems: token-based auth Externalsystems token-based auth Legacy scripts: 1.0, 2.0, 2.x Legacy scripts 1.0, 2.0, 2.x RESTlets: 2.0 response handling RESTlets 2.0 responsehandling Manual edits: or SuiteCloud CLI for Java Manual edits or SuiteCloud CLI for Java record events calls deploys © Cohash · cohash.com
after

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.

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. 01 · PEOPLE AND SYSTEMS 02 · NETSUITE ACCOUNT 03 · DELIVERY record events calls deploys Users and workflows External systems OAuth 2.0 for new ones Scripts on 2.1 owned and tested RESTlets on 2.1 retested with callers SDF project Node.js CLI or VS Code © Cohash · cohash.com
01 · PEOPLE AND SYSTEMS02 · NETSUITE ACCOUNT03 · DELIVERY Users and workflows Users andworkflows External systems: OAuth 2.0 for new ones Externalsystems OAuth 2.0 for newones Scripts on 2.1: owned and tested Scripts on 2.1 owned and tested RESTlets on 2.1: retested with callers RESTlets on 2.1 retested withcallers SDF project: Node.js CLI or VS Code SDF project Node.js CLI or VS Code record events calls deploys © Cohash · cohash.com
chapter 06

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

01 Invoicescript SuiteScript 1.0 02 Fails on somerecords 03 Support convert first 04 Converted intime
scenario 01High risk
Old 1.0 scripts from a first implementation
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.
01 2.x script 02 2.1 engine default in 2028.1 03 parseIntresult different 04 Tested insandbox
scenario 02Medium risk
2.x scripts no one expects to change
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.
01 Ecommercesite 02 RESTlet on2.1 03 Differentreply 04 Callerupdated
scenario 03Medium risk
A RESTlet behind an integration
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.
chapter 07

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.

key takeaways

What to take from this

  1. 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.

  2. 02

    From 2027.1, non-critical 1.0 problems need converting before support will help.

  3. 03

    2.0 and 2.x scripts switch to the 2.1 engine by default in 2028.1, so test them before then.

  4. 04

    Inventory by API version and owner, retire dead scripts, and convert the rest in batches.

  5. 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.

  6. 06

    Move off SuiteCloud CLI for Java and plan new integrations on OAuth 2.0 in the same project.

platforms in this noteOracle NetSuite →
fact-checked November 2026 against vendor and official documentation · where to go next
  1. How Cohash delivers Oracle NetSuite: scope, roles and architecture
  2. Hire vetted Oracle NetSuite engineers
  3. ERP systems
  4. Book a 30-minute working session with a senior engineer
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.

next track

That's the end of this track.

Next up: identity security, from the ground up. Start with sign-in policy, finish with the agents now asking for access.

  1. 01Dataverse for Teams is going away: what to keep, move or let go before September 2027
  2. 02What an SAP S/4HANA migration actually costs: the drivers, the ranges and where budgets break
  3. 03SAP ECC mainstream maintenance ends in 2027: what you need to decide this quarter
  4. 04CMS-0057-F on January 1, 2027: what health plans on Facets, QNXT and HealthRules need live
  5. 05Still running Dynamics AX 2012? When to upgrade to Finance and Operations and when to start over
  6. 06Dynamics 365 Business Central vs Finance and Operations: which one you actually need
  7. 07Export to Azure Data Lake stops on November 30. Is your Finance and Operations close ready?
  8. 08Dynamics 365 storage limits won't bite before January 2027: what gets blocked, and how to get out
  9. 09Microsoft is dropping RSAT in May 2027. What tests Finance and Operations after that?
  10. 10Unmanaged developer environments end December 15
  11. 11Field Service's link to Finance ends in February 2027: plan the move to Project Operations
  12. 12Is your Dynamics 365 Finance build ready for Norway's SAF-T 1.40 and French e-reporting?
  13. 13SharePoint's tempauth links stop working on their own in April 2027. Here's what breaks in Power Apps and Power Automate
  14. 14UiPath is retiring the Windows 10 and Server 2019 images for cloud robot VMs. Here's how to move your pools
  15. 15Salesforce to Salesforce goes dark on your Spring '27 upgrade weekend. Here's how to replace it
  16. 16UiPath is moving its official package feed to pkgs.uipath.com. Find what still points at the old address
  17. 17NetSuite is retiring SuiteScript 1.0, 2.0 and 2.x. Here's how to get your scripts onto 2.1 in time
all learning tracks →
A full business cycle Report-only Pilot ringenforces Staged rings Change in git All users
Security · 12 minConditional access is a policy, not a prayer

Change access policies the way you'd ship code: report-only, then rings, rollback at hand.

read next
next step

Tell us what you're running. We'll tell you what we'd do first.

A 30-minute working session with a senior engineer. No slides.

useful to bring
  • The platform and the version you're on
  • Where you need to get to, and by when
  • What's custom: rules, plugins, integrations
  • Any audit finding or deadline driving it