each(params)
Description |
Iterates through each applicable record. |
Returns |
void |
Since |
Version 2016 Release 1 |
Parameters
The params
parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.
Parameter |
Type |
Description |
Since |
---|---|---|---|
|
number |
The ID of the record being processed by the mass update. |
Version 2016 Release 1 |
|
string |
The record type of the record being processed by the mass update. |
Version 2016 Release 1 |
Syntax
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