task.ActionCondition
JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Enum Description |
Holds the string values for the possible record action conditions. This enum is returned by RecordActionTask.condition. |
Module |
|
Sibling Module Members |
|
Since |
2019.1 |
Values
Value |
---|
|
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.
// 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