Skip to main content

JavaScript Task

Zuora

JavaScript Task

The JavaScript task is a function that reads an input, the Data Payload, and generates logic in standard JavaScript syntax. For example:

exports.step = function myFunction(input) {
  
  var executionDate = input["Workflow"]["ExecutionDate"];

    return {executionDate};
};

Take the input parameter and assign the Workflow ExecutionDate key to the variable executionDate. Returning the executionDate adds it to the Data Payload for use by the next step in the Workflow.

The maximum execution time to process this task is limited to 20 seconds.