Identifying Scripts That Are Not Using SuiteScript 2.1

SuiteScript 2.1 is the standard version of SuiteScript and includes support for modern JavaScript language features. If your account contains a large number of scripts, you may want to identify scripts that are not currently using SuiteScript 2.1 to evaluate them for migration.

You can identify these scripts in several ways, depending on whether you need a quick list or want to perform more detailed analysis.

Filter Scripts in the NetSuite UI

For a quick review, use the script list in the NetSuite UI and filter the results by API version.

  1. Go to Customization > Scripting > Scripts.

  2. Locate the API Version filter.

  3. Select an API version other than 2.1, such as 1.0 or 2.0.

  4. Review the scripts returned by the filter.

Repeat the process for each applicable API version to identify scripts that are not using SuiteScript 2.1.

This method is useful when you want to quickly inspect scripts without creating a reusable search or report.

Note:

The API version shown on the script record identifies the SuiteScript version associated with the script. Before updating a script to SuiteScript 2.1, review the script source and dependencies to determine whether code changes are required.

Create a Saved Search

If you need a reusable list of scripts that are not using SuiteScript 2.1, create a saved search.

A saved search can help you inventory scripts and include additional information that is useful when planning migration work, such as the script name, script ID, script type, owner, and API version.

To create a saved search:

  1. Create a saved search for script records.

  2. Add criteria to exclude scripts where API Version is 2.1.

  3. Add the fields you want to review as search results. For example:

    • Name

    • ID

    • Script Type

    • API Version

    • Owner

    • Description

  4. Save and run the search.

Configure the search so that the results include scripts whose API version is not SuiteScript 2.1. Consider adding other criteria to narrow the results. For example:

Field

Operator

Value

API Version

is not

2.1

Create a SuiteAnalytics Workbook

For accounts with many scripts, you can use SuiteAnalytics Workbook to create a more detailed inventory and analyze the results.

A workbook is particularly useful when you want to group, filter, or summarize scripts by attributes such as API version, script type, or owner.

To create a workbook:

  1. Go to Analytics > Workbooks > New Workbook.

  2. Select a dataset that provides access to script information, or create an appropriate dataset.

  3. Add fields that help identify and categorize scripts, such as:

    • Script name

    • Script ID

    • Script type

    • API version

    • Owner

  4. Add a filter that excludes scripts using API version 2.1.

  5. Optionally, group the results by API Version or Script Type to help prioritize your review.

  6. Save the workbook for future use.

Grouping scripts by API version can help you distinguish SuiteScript 1.0 scripts from SuiteScript 2.0 scripts and determine the scope of potential migration work.

Related Topics

General Notices