A practical, step-by-step guide that turns the playbook into a real migration — the audit, the official API map, the module rebuild, and a safe rollout — with links to the official NetSuite documentation so you can verify everything for yourself.
Practical developer guide · Backed by the official NetSuite Help Center
This is the practical companion to our SuiteScript 1.0 to 2.1 Migration guide. The main article explains why 1.0 is a liability and what 2.1 buys you; this page is the plain checklist for actually doing the migration. Work through the steps in order — audit first, roll out sandbox-first — and use the official NetSuite documentation link under every step to confirm the exact API as you go.
Before you start — prerequisites
A sandbox: do the whole migration in a Sandbox or Release Preview account first — never in Production.
Source control: get your scripts into Git (e.g. via SuiteCloud CLI/SDF) so every change is reviewable and reversible.
Target 2.1: write all new code as SuiteScript 2.1 (@NApiVersion 2.1) for modern language features.
What you'll set up
Audit your 1.0 codebase
Map every 1.0 API to its 2.x equivalent
Rebuild on the AMD module architecture
Adopt SuiteScript 2.1 async/await
Add real error handling
Deploy with the right JSDoc tags
Roll out sandbox-first
1
Audit your 1.0 codebase
You can’t plan a rewrite you haven’t measured. Inventory every 1.0 script and learn where 2.x differs before touching code.
Go to: Customization > Scripting > Scripts (filter by API Version)
List every script, its type, deployments, and dependencies; flag the high-risk and high-traffic ones.
Read the differences overview so you know what changes structurally (modules, subrecords, error handling).
Prioritize: start with small, low-risk scripts to build a pattern before tackling the critical ones.
A note on accuracy: NetSuite menu paths, modules, and supported async APIs evolve between releases (the set of modules that support server-side await, for example, has grown over time). Always confirm each mapping and capability against its official reference, and test the migrated script in Sandbox before cutting over in Production.
Everything above gets your scripts onto the modern 2.1 runtime. What sits beyond a mechanical port — async refactors, a real error-handling architecture, performance re-tuning under 2.x governance, and regression coverage — is engineering work. It often means restructuring modules and adding tests, not just swapping API calls.
A migration touches live business logic, so port in a Sandbox, run both versions side by side where you can, and validate every script before cutting over. For the full background on each decision — the API map, the module model, and the rollout plan — read the companion guide.
Planning a SuiteScript migration?Our NetSuite engineers audit your 1.0 estate, rewrite scripts on the 2.1 module architecture with proper error handling, and roll out Sandbox-first — so nothing breaks in Production.
Documentation links point to the official Oracle NetSuite Help Center (docs.oracle.com). Exact menu paths and feature names vary by NetSuite version and edition — confirm each step against the linked Help Center page and validate in Sandbox first.