runtime.isNextActive()

Method Description

Returns whether NetSuite Next is active for the user running the script.

Note:

For scheduled and map/reduce scripts, the return value depends on the user running the script. If NetSuite runs the script as the System user, this method returns false. For more information about how NetSuite determines the user who runs a script, see Scheduled Script Submission and Map/Reduce Script Submission.

Returns

boolean

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.1 Script Types.

Governance

None

Module

N/runtime Module

Since

2026.1

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/runtime Module Script Samples.

          define(['N/runtime'], (runtime) => {
  ...
  ...
  if (runtime.isNextActive()) {
    // Additional code
  }
  ...
  ...
}); 

        

General Notices