Modules
Objects/Functions
SuiteScript 2.0
task.ActionCondition.{}
N/task Module
task.ActionCondition
Enum Description:
Enumeration that holds the string values for the possible record action conditions.
This enum is returned by RecordActionTask.condition.
JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Since:
2019.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=task.ActionCondition
Example:
// Code Example 1
// Add additional code
//...
var recordActionTask = task.create({taskType: task.TaskType.RECORD_ACTION});
recordActionTask.recordType = 'timebill';
recordActionTask.action = 'approve';
recordActionTask.condition = task.ActionCondition.ALL_QUALIFIED_INSTANCES;
recordActionTask.paramCallback = function(v) {
return { recordId: v, note: "this is a note for " + v };
};
var handle = recordActionTask.submit();
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1544128916.html