Node reference
Code
Transform data with custom JavaScript
Transform data with custom JavaScript
Part of Core / Data. This reference is generated from the node definitions shipped with Blokboard.
When to use it#
- Transform an API response using JavaScript.
Parameters#
| Parameter | Field type | Default | Description |
|---|---|---|---|
JavaScript (code) | code | (empty) | Runs locally when the workflow reaches this node. Build a JSON-compatible result. |
JavaScript: Double-brace expressions are not resolved in this field.
Inputs#
| Port | Value | Description |
|---|---|---|
in | any | Incoming value exposed to the script as input. |
Outputs#
| Port | Value | Description |
|---|---|---|
out | any | The JSON-compatible value returned by the script. |
Use in a workflow#
Connect this node to the path that should execute it. Run a small example, inspect its actual output, and use the expression picker to select values for later nodes.
See expressions for mapping values, workflow basics for connections, and troubleshooting for failed runs.