Skip to content

Mapper Node

Module ID: ion.action.mapper

The Mapper node transforms input data into a new structure using the visual mapping component.


Use the Mapper node when you need to transform data between different formats, extract specific fields, or restructure payloads for downstream nodes or API calls.

The Mapper uses a visual interface (see Mapper Component) to define transformations.


HandleDescription
inputSource data to transform
HandleDescription
outputTransformed data
errorInvalid configuration or mapping error

The Mapper node stores its configuration as a map with pre-computed transformation result:

// node.data structure
{
params: any // The resulting mapped data
}

  1. Receives input data
  2. Parses node.data configuration
  3. Extracts the params field
  4. Outputs the params to output handle

The visual Mapper component handles the complex transformation logic, producing a params object that this node outputs.


{
"shopify_order": {
"id": 12345,
"customer": {
"name": "John Doe",
"email": "[email protected]"
},
"line_items": [...]
}
}
{
"order_id": "12345",
"customer_name": "John Doe",
"customer_email": "[email protected]"
}

[Get Order] → [Mapper] → [Create Shipment]
[Webhook] → [Mapper: extract relevant fields] → [Process]

ErrorCause
”Invalid Form File”node.data format incorrect
”Mapper not configured”Missing params field in configuration