RecordActionTask.params
| Property Description | An array of parameter objects. Each object corresponds to one record ID of the record for which the action is to be executed. The object has the following form: {recordId: 1, someParam: 'example1', otherParam: 'example2'} | 
| Type | Object[] | 
| Module | |
| Sibling Object Members | |
| Since | 2019.1 | 
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, note: "this is a note for 1"},
    {recordId: 5, note: "this is a note for 5"},
    {recordId: 23, note: "this is a note for 23"}];
var handle = recordActionTask.submit();
var res = task.checkStatus({taskId: handle}); // returns a RecordActionTaskStatus object log.debug('Initial status: ' + res.status);
}); ...
//Add additional code