ToolJet/docs/versioned_docs/version-3.16.0-LTS/workflows/results.md
rudrapratik30 b2305bf9aa wip
2025-09-30 14:03:28 +05:30

1.7 KiB

id title
results Configuring Response
Self Hosted

Users have the flexibility to customize the response returned by workflows. The Response node enables configuration of your output through JavaScript code. Each workflow can have multiple response nodes.

Return Data from a Single Node

Consider a workflow that combines sales data (from the getSalesData node) with inventory data (from the getInventory node) via a JavaScript operation (in the generateCSVData node).

Response Node Preview

Within the Response node, specify the output by using a return statement that encapsulates an object within parentheses:

return ({generateCSVData})
Single Node Response

Returning Data From Multiple Nodes

You can also return data from other nodes. Either return the complete data set or specify only the required portions, as demonstrated below:

return 
    ({sales: getSalesData.data,
    inventory: getInventory.data,
    csv: generateCSVData.data})
Multi Node Response

Workflow Execution

When executing workflows with triggers, the configured data in the Response node will be included in the API response. When triggered inside a ToolJet app, the data will be returned in the same format as a regular query.