each(params)

Description

Iterates through each applicable record.

Returns

void

Since

Version 2016 Release 1

Parameters
Note:

The params parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.

Parameter

Type

Description

Since

params.id

number

The ID of the record being processed by the mass update.

Version 2016 Release 1

params.type

string

The record type of the record being processed by the mass update.

Version 2016 Release 1

Syntax
Important:

The following code snippet shows the syntax for this entry point. It is not a functional example. For a full script sample, see Mass Update Script Sample.

          // Add additional code
...
function each(params) {
    // Set the probability to 61%
    let recOpportunity = record.load({
        type: params.type,
        id: params.id
    });
...
// Add additional code 

        

Related Topics

SuiteScript 2.x Mass Update Script Entry Points

General Notices