Function Execution
Last updated
Was this helpful?
Last updated
Was this helpful?
JavaScript Code
JavaScript Code
Use the return
statement to pass data to the next task.
There are no restrictions on the data format.
Refer to the following example to access data from a previous task.
Example Explanation
The alphabet symbol next to each task title in the Dataflow interface serves as a data reference key. In this case, we are referencing the first item in an array returned from a MySQL query, using its total
value as the basis for further processing.
The example shows how to reference data from Task B using JavaScript.
The referenced data is then processed and passed to the next task using a return
statement.
Refer to the following code for using data with a webhook.
All execution logic and results follow the standard JavaScript execution model.
You can check the output data by using the "Test with 1 Data" button located at the top right of the Dataflow interface.