RecordActionTask.paramCallback

Property Description

Property of type function that takes record ID and returns the parameter object for the specified record ID. Is to be used in conjunction with task.ActionCondition.

This parameter cannot be specified when RecordActionTask.params is specified.

Type

function

Governance

None

Module

N/task Module

Sibling Object Members

RecordActionTask 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.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 

        

Related Topics

General Notices