RecordActionTaskStatus.failed
Property Description |
The number of record actions with a failed status. |
Type |
number (read-only) |
Module |
|
Sibling Object Members |
|
Since |
2019.1 |
Errors
Error Code |
Thrown If |
---|---|
|
Setting the property is attempted. |
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/task Module Script Samples.
// Add additional code
...
var recordActionTask = task.create({
taskType: task.TaskType.RECORD_ACTION
});
recordActionTask.recordType = 'timebill';
recordActionTask.action = 'approve';
recordActionTask.params = [{recordId: 1}, {recordId: 2}];
var handle = recordActionTask.submit();
var taskStatus = task.checkStatus({taskId: handle}); // returns a RecordActionTaskStatus object
log.debug('Actions failed: ' + taskStatus.failed); // will log, for example, the following: Actions failed: 0
...
// Add additional code