Using transform-data steps
Using transform-data steps
Using transform-data steps
Transform-data steps manipulate data using JavaScript in a sandboxed environment, letting you format, filter, merge, or calculate values within Flows.
Write JavaScript that returns a value. All Flow variables from previous steps are available directly by their outputVariable name:
Reference output from earlier steps by their outputVariable name:
Transform steps run in a sandboxed environment (Cloudflare Worker by default) and support modern JavaScript:
map, filter, reduce, etc.)async/awaitDate objectsMath functionsJSON.parse and JSON.stringifyhelpers.*)External libraries are not available in the default sandbox. Use API call steps for external data.
The default step timeout is 5 minutes. Keep transformations focused to avoid unnecessary execution time.
Wrap risky operations in try/catch:
Use the step tester to validate logic: