SuiteScript has long been one of the most valuable and widely used tools in NetSuite. Thousands of developers and administrators have used SuiteScript 1.0 to customize and automate key business processes, empowering their organizations to run faster and more cost-efficiently.
So it’s no surprise that the new SuiteScript 2.0 API, generally available as of NetSuite 16.1, has generated a lot of interest and questions among NetSuite developers. What are the key distinctions between SuiteScript 1.0 and 2.0? Do we need to upgrade our existing 1.0 scripts? What value does SuiteScript 2.0 offer to our developers and our business?
SuiteScript 2.0 for Experienced SuiteScript Developers shows seasoned users how to apply existing knowledge to write User Event, Client, Suitelet and other script types in SuiteScript 2.0. This two-day course also covers converting 1.0 scripts to 2.0, using the new Map/Reduce script type for better batch throughput and the new Promise API, enabling asynchronous server calls to improve performance. This course is available via virtual training or as self-study. Check out the course schedule for class dates and times.
SuiteScript 2.0 builds on the success of 1.0 with a more natural, object-oriented syntax that is easier to reuse and maintain. NetSuite recommends that all new scripts be written in SuiteScript 2.0, though 1.0 will remain available and supported by NetSuite. While there’s no immediate need to convert existing 1.0 scripts to 2.0, developers will need to upgrade scripts to 2.0 in order to take advantage of features available only in SuiteScript 2.0. Future enhancements to the SuiteScript feature set will be limited to 2.0. 1.0 is now in maintenance mode.
At a high level, SuiteScript 2.0 provides better modularity, efficiency and ease of upgrades:
Modularity. SuiteScript 2.0 uses an asynchronous module definition (AMD) design, so that developers create modules, not functions. Modules are parked in the system and are called only when needed.
Efficiency. Since almost all functions are now accessed as methods within modules, they are not loaded into the global scope at runtime, meaning that scripts run more efficiently. New features such as the Map/Reduce script type are aimed at faster performance.
Ease of upgrades. Aside from new functionality in SuiteScript 2.0, you can easily upgrade to new versions without having to significantly change code. For instance, upgrading from SuiteScript 2.0 to a future version can be as easy as changing the version number.
Student reviews illustrate the value these two new courses offer:
“This is a great course with a wonderful instructor, and there isn't anything that I'd recommend changing.” — Student of SuiteScript 2.0 for Experienced SuiteScript Developers.
If you have any questions, contact email@example.com to work with a NetSuite Education Advisor to select the right SuiteScript 2.0 course for you!