dataPath tells the workflow engine where to find the array of records in the response:
{ data: { orders: [{ id: "o1" }, { id: "o2" }] } }, dataPath: "data.orders" extracts the orders array so each item becomes a row in the output table.
Extract nested data from service responses
dataPath tells the workflow engine where to find the array of records in the response:
{ data: { orders: [{ id: "o1" }, { id: "o2" }] } }, dataPath: "data.orders" extracts the orders array so each item becomes a row in the output table.