← Back to Blog
SuiteScript 2.1 migration for integrations
ERP Implementation

SuiteScript 2.1 migration for integrations

byBruno Galo · Published on 23 Nov 2026

Available inCatalàEnglishEspañolPortuguês

This guide is for CTOs, NetSuite administrators and integration owners whose NetSuite account still runs SuiteScript 1.0, 2.0 or 2.x code, and especially RESTlets, scheduled scripts and map/reduce jobs that other systems depend on. Often a previous partner or a freelancer wrote them, and nobody has a list. It answers one question: when do those scripts stop working, and how do you move them to SuiteScript 2.1 without breaking the integrations that call them?

Everything below comes from Oracle's public documentation, re-read on 23 November 2026 and linked at the end. Where a point could not be confirmed, it says so.

Short answer. Oracle has made SuiteScript 2.1 the standard from release 2026.2 and plans to stop running everything else in 2028.2. SuiteScript 1.0 gets critical fixes only from 2027.1. In 2028.1, 1.0 can no longer be deployed in new accounts, and 2.0 and 2.x scripts run as 2.1 by default. In 2028.2, all scripts must use 2.1, including files annotated @NApiVersion 2.x. Integration scripts should go first, planned together with the move off Token-Based Authentication (no new TBA integrations from 2027.1) and off SOAP (removed in 2028.2), because the same releases hit the same code.

The timeline, dated

Oracle publishes the plan by NetSuite release, not by calendar date. The script column is Oracle's 2026.2 release note; the integration column comes from Oracle's authentication release note, its TBA end-of-support page and its SOAP removal FAQ.

NetSuite release Scripts (Oracle) Integrations, same release (Oracle)
2026.2 SuiteScript 2.1 becomes the standard scripting model for new and existing scripts New integrations should already be built on REST web services (Oracle's advice since 2026.1)
2027.1 SuiteScript 1.0 enters end-of-life support, critical issues only; other problems require converting to 2.1 first No new integrations using TBA for SOAP, REST or RESTlets; PKCE required for new OAuth 2.0 authorization code integrations; no new SOAP integrations
2027.2 No script change announced SOAP: only the latest endpoint is supported
2028.1 1.0 scripts can no longer be deployed in new accounts, still deployable in existing ones; 2.0 and 2.x scripts run as 2.1 by default No change announced
2028.2 All new and existing scripts must use 2.1. "Legacy script versions will no longer run." All SOAP endpoints disabled and SOAP integrations stop working; TBA support for existing integrations ends, "tentatively"

Two notes on wording. Oracle's transition guide says support for the old versions "is expected to be removed in NetSuite 2028.2", while the release note says legacy versions "will no longer run". Plan on the second.

Why integration scripts are the riskiest group

Oracle's own advice is to start with critical business processes, high-usage scripts and integrations. For integration scripts there are four extra reasons.

  • A RESTlet is a script. A RESTlet that Celigo, a middleware platform or a partner calls is covered by the same timeline as any user event script.
  • 2028.1 changes behaviour without a deploy. From 2028.1, 2.0 and 2.x scripts run in the 2.1 runtime by default. Nobody uploads anything, and the differences show up in production.
  • They fail where nobody in NetSuite is looking. When a RESTlet answers in a slightly different shape, the error appears in the caller's logs, not in NetSuite.
  • They are often undocumented. Many were written by someone who has left. The questions we cover in NetSuite integration partner vs freelancer about ownership and handover apply here first.

Step 1. Inventory every script that is not on 2.1

Oracle documents three ways to find them:

  1. Script list. Go to Customization > Scripting > Scripts, use the API Version filter and select each version other than 2.1 in turn.
  2. Saved search. Create a saved search on script records with the criterion API Version is not 2.1, and show name, ID, script type, API version, owner and description.
  3. Workbook. Build a SuiteAnalytics workbook with the same fields and filter, grouped by API version or script type.

Then add the columns that decide the order of work for integrations.

Column Why it matters
Script type and deployments A RESTlet or map/reduce job with active deployments is live code
Last execution Scripts that have not run in months are candidates to retire, not migrate
Caller Celigo flow, middleware, partner, internal tool, or nothing
Caller's authentication TBA, OAuth 2.0, or SOAP: tells you whether the caller has to change too
Owner Who can say what "correct" looks like, and who signs off the test
Decision Retire, test as 2.1, or rewrite

Include SuiteApps and bundles you do not own. You cannot migrate a vendor's code, so ask each vendor for its 2.1 plan and a date, in writing.

Step 2. Put the work in risk order

  1. Business-critical integration scripts. Order import, payments, fulfilment and inventory RESTlets. A failure here stops trade.
  2. High-volume scheduled and map/reduce jobs. They touch many records, so a subtle change multiplies.
  3. SuiteScript 1.0 scripts. Every one is a rewrite, not an annotation change.
  4. SuiteScript 2.0 and 2.x server scripts. Often only a test, a few fixes and a new annotation.
  5. Client scripts and low-use scripts. Last. Retire what is dead instead of migrating it.

Step 3. Choose the path for each script

2.0 and 2.x server scripts: test in the 2.1 runtime first

Oracle offers two account-level preferences under Setup > Company > Preferences > General Preferences: Execute SuiteScript 2.0 Server Scripts as 2.1 and Execute SuiteScript 2.x Server Scripts as 2.1. Turn them on in a sandbox, run the scripts, read the execution logs, fix what differs, then change the annotation to @NApiVersion 2.1.

Four caveats from Oracle's page:

  • With the preferences on, files annotated 2.0 or 2.x still use 2.0 syntax rules when uploaded, so code that uses 2.1-only syntax returns a syntax error until you change the annotation.
  • Only script types that 2.1 supports are affected.
  • If a script fails validation, it keeps running as 2.0.
  • You can switch either preference back to 2.0 at any time.

SuiteScript 1.0 scripts: plan a rewrite

Oracle is direct about this: you must replace 1.0 global functions with 2.1 modules and methods, review the script type, entry points and APIs used, and revise searches and record operations. "Some SuiteScript 1.0 functions do not have a direct SuiteScript 2.1 equivalent and might require a different implementation." Oracle's upgrade skill names examples: nlapiAddDays and nlapiAddMonths become native JavaScript date code, and nlapiSetRecoveryPoint and nlapiYieldScript have no direct equivalent, so long-running jobs usually become map/reduce scripts.

Change the caller in the same window

If the caller authenticates with TBA, it has to move to OAuth 2.0 before TBA support ends. If it uses SOAP, it has to move to REST web services or a RESTlet before 2028.2. Doing the script now and the caller next year means testing the same integration twice. Our SuiteTalk REST vs SOAP guide covers which API to choose; this guide covers the script side.

AI-assisted conversion: what it does and what it gets wrong

Oracle publishes an open-source agent skill, netsuite-suitescript-upgrade, in the oracle/netsuite-suitecloud-sdk repository on GitHub. It has four modes: analyze (complexity, APIs used, compatibility risks), convert (a 2.1 version of the script), explain (how a 1.0 function or concept maps to 2.1) and validate (leftover 1.0 calls, missing modules, common conversion bugs). According to Apideck, SuiteWorld 2026 also had a session on using AI coding assistants to speed up 1.0 to 2.1 migration.

Oracle is careful about what it promises: "Validation is a static migration check, not a substitute for functional testing", and "Do not change production behavior solely because a conversion completed without errors."

The risk is code that converts, uploads and deploys cleanly, then behaves differently. These are the differences Oracle documents that matter most to integrations.

Difference Before In 2.1 Who notices
RESTlet post() returning a string 2.0 adds a JSON.stringify call internally, so the response carries extra quotes No extra call, so the string comes back as written The caller's parser
RESTlet response with Content-Type: application/json 2.0 converts the response to a string Returned as an object The caller's parser
JSON.stringify on an Error created with a message Output includes the message Output is {} Anyone reading your RESTlet's error responses
JSON with trailing commas Accepted in 2.0 Syntax error Partners that send sloppy JSON
Date converted to a local string Long format by default ("December 21, 2012") Short format by default ("2012-12-21") Files and APIs that receive dates as text
parseInt('08') No value in Oracle's 2.0 example 8 Code that parses padded numbers
Sublist line index (1.0 only) 1-based 0-based Every loop over lines
Error objects (1.0 only) nlobjError with getCode() and getDetails() SuiteScriptError with name and message Error handling and retry logic
Search results (1.0 only) nlapiSearchRecord search.create() and .run(); the skill notes a 4,000-result limit on .each() Jobs that process large result sets

The rule we apply: AI converts syntax, but it cannot know what the external caller expects. Every RESTlet gets a contract test against recorded requests and responses before it goes live as 2.1.

Step 4. Test and roll out

Oracle's validation list is the minimum: run the converted script in a sandbox, test all entry points, check sublists, searches, record operations, data handling and error handling, confirm that deployment records and SDF objects still point to the right files, and compare with the original behaviour.

For integration scripts, add this:

  1. Record real traffic first. Capture requests and responses from each caller against the current script: status, headers, content type and body.
  2. Replay against the 2.1 version in a sandbox with production-like data, and diff the responses byte by byte. Extra quotes and a missing error message show up here and nowhere else.
  3. Roll out in groups. Oracle recommends phased roll-out. Watch execution logs and the caller's error rate for a week per group before starting the next.
  4. Keep a way back. Keep the previous file version and deployment settings until the group has run cleanly.
  5. Close it out. Done means no scripts on 1.0, 2.0 or 2.x, no TBA in new work, and no SOAP callers.

One project, not three

Window Work
Now to 2027.1 Inventory; OAuth 2.0 (with PKCE for the authorization code flow) for every new integration; migrate business-critical RESTlets
2027.1 to 2028.1 Rewrite the remaining 1.0 scripts; move SOAP callers to REST web services or RESTlets
Before 2028.1 Every 2.0 and 2.x server script tested in the 2.1 runtime and re-annotated
Before 2028.2 Nothing legacy left: no old script versions, no TBA callers, no SOAP

What we could not confirm

  • Client scripts in 2028.1. The timeline says 2.0 and 2.x scripts run as 2.1 by default from 2028.1; the account-level preferences address server scripts only. We could not confirm how client scripts are treated before 2028.2.
  • The TBA end-of-support release. Oracle says "tentatively NetSuite 2028.2". It is not final.
  • Calendar dates. Oracle gives release numbers. We did not convert them into months.
  • The SuiteWorld session. We know of it only through Apideck's report, not from an Oracle page we could open.

We will update this page when Oracle changes any of these, and change the date at the top when we do.

Where Atypical Tech fits

We are an integration engineering firm in Spain and a Celigo and Stacksync partner. We audit NetSuite integrations, list the scripts and the callers behind them, rewrite RESTlets and scheduled jobs in 2.1, and move authentication and APIs in the same plan. Many Celigo flows call RESTlets, so we test both ends; see our Celigo implementation work and all the systems we connect.

Not sure how many of your integrations depend on old SuiteScript? We will go through the inventory with you in 30 minutes.

Frequently asked questions

When does SuiteScript 1.0 stop being supported?

From NetSuite 2027.1, Oracle covers SuiteScript 1.0 for critical issues only, and other problems require converting the script to 2.1 first. In 2028.1, 1.0 scripts can no longer be deployed in new accounts. In 2028.2, all scripts must use 2.1 and legacy versions will no longer run, according to Oracle's 2026.2 release note.

Is SuiteScript 2.x deprecated?

Yes. Oracle's plan covers SuiteScript 2.0 and every script annotated @NApiVersion 2.0 or @NApiVersion 2.x. From 2028.1 those scripts run as 2.1 by default, and in 2028.2 all scripts must use 2.1.

Do SuiteScript 2.0 and 2.x scripts need a rewrite?

Often not. Oracle suggests testing them first with the account-level preferences that run 2.0 and 2.x server scripts as 2.1, in a sandbox. Fix what behaves differently, then change the annotation to @NApiVersion 2.1.

Do RESTlets have to move to SuiteScript 2.1?

Yes. A RESTlet is a script and falls under the same timeline. RESTlets also show some of the most visible 2.1 differences, such as how a post() return value and a JSON response are formatted, so test them against the real caller.

Can AI convert SuiteScript 1.0 to 2.1?

It can help. Oracle publishes the netsuite-suitescript-upgrade agent skill, which analyses, converts, explains and validates scripts. Oracle still says to review all generated code and to test functionally in a sandbox, because validation is a static check.

How do I find scripts that are not on SuiteScript 2.1?

Go to Customization > Scripting > Scripts and filter by API Version, or build a saved search or a workbook on script records where API Version is not 2.1. Oracle documents all three methods. Then add the caller, its authentication and the last execution date for each script.

How does this relate to the TBA and SOAP deadlines?

They land in the same releases. From 2027.1 you cannot create new TBA integrations or new SOAP integrations, and in 2028.2 SOAP is removed and TBA support for existing integrations is tentatively due to end. Planning the scripts and their callers as one project avoids testing each integration twice.

What if a freelancer built our scripts?

Start with the inventory and document each script's caller and owner before changing any code. Knowing who calls a script and what they expect matters more than the syntax. If nobody can say, record the traffic and treat that as the specification.

Book a SuiteScript and integration audit call

We will look at your script inventory and the integrations that call it, and tell you what we would migrate first.

Book a 30-min call · 30 minutes · No commitment · English, Spanish, Portuguese and Catalan

About the author

Bruno Galo is the founder of Atypical Tech, an integration engineering firm in Spain that connects NetSuite with CRMs, e-commerce platforms and the rest of a mid-market company's systems. Atypical Tech is a Celigo and Stacksync partner.

LinkedIn: https://www.linkedin.com/in/brunogd

Sources

All checked on 23 November 2026.

Comments

No comments yet.

Leave a comment

Your comment will be reviewed before publishing.

An unhandled error has occurred. Reload 🗙