fieldMapping lets you rename or remap fields from source data to match your output schema columns:
| Field | Required | Description |
|---|---|---|
fieldMapping | No | Maps output column names to source field paths |
- Dot-notation paths — reference fields in the service response (e.g.,
"orderId","response.field") {{item.X}}references — pull values from the forEach source row
fieldMapping is not provided, the engine matches output schema columns to response fields by name, including automatic camelCase conversion (e.g., order_id matches orderId).
Generated values
Field mappings can generate values instead of reading from the source:| Generator | Output |
|---|---|
{ generate: "cuid" } | CUID string |
{ generate: "uuid" } | UUID v4 string |
{ generate: "now" } | Current ISO timestamp |
Generated values are currently available in importFromDatabase and persistToDatabase steps only.
Validation
| Check |
|---|
fieldMapping keys exist in outputSchema |
fieldMapping values exist in the source data |
generate values use valid types (cuid, uuid, now) |

