Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=RecordActionTaskStatus.results for more information.
N/task Module
RecordActionTaskStatus.results
Parameter Description:
The results of successfully executed record action tasks. The value of the property is the task instance ID and the corresponding action result.
Type:
Object (read-only)
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Sibling Object Members:
RecordActionTaskStatus Object Members
Since:
2019.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=RecordActionTaskStatus.results
Example:
// Code Example 1
// 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(taskStatus.results);
// will log e.g. the following:
// { 1: { response: { approved: true }, notifications: [] }}
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1544128024.html