Menu
Map Fields
Map fields from source data to a new target shape using structured field mappings, built-in transforms, and array-to-array mapping.
Use it in a workflow
- Add a step and choose the Mapper connector.
- Pick the Map Fields action (under data).
- Fill in the fields below, then reference the result from later steps as
{{mapFields.response.data}}.
Fields
Examples
Reshape a webhook payload
Map a subset of an incoming order payload into a flatter shape, converting price to a number and defaulting a missing currency
{
"data": "{\"order\": {\"id\": \"abc123\", \"amount\": \"42.50\"}}",
"mappings": [
{
"kind": "field",
"id": "id",
"sourcePath": "order.id",
"targetPath": "orderId"
},
{
"kind": "field",
"id": "amount",
"sourcePath": "order.amount",
"targetPath": "total",
"transform": {
"kind": "builtin",
"name": "toNumber"
}
},
{
"kind": "field",
"id": "currency",
"sourcePath": "order.currency",
"targetPath": "currency",
"transform": {
"kind": "builtin",
"name": "defaultValue",
"params": {
"value": "USD"
}
}
}
]
}
Need more? See the Mapper guide for connection setup and behaviour shared by every action.
Was this page helpful?