When to use
- Map internal fields to external application field names (NetSuite, SAP)
- Transform incoming data to match your internal system format
- Apply user-defined field mapping configurations from Config settings
- Standardize data formats between multiple third-party applications
Data Mapper handles flat field mapping only. For nested objects, arrays, or data type conversion, use the Transform node or Custom Code node.
How it works
The node renames the fields of an Input object using a Mapping of key-value pairs, where each pair defines a rename relationship ("source_name": "destination_name"). The Direction decides which side of the mapping is matched against the input and which side is used for the output:
- Source to Destination — the node looks at the input field names, finds the matching keys in the mapping, and writes them out under the mapping values.
- Destination to Source — the reverse: the input field names match the mapping values, and the output uses the mapping keys.
body.
Example (Source to Destination):
| Input | {"fname": "abc", "lname": "def"} |
| Mapping | {"fname": "firstname", "lname": "lastname"} |
| Direction | Source to Destination |
Output (body) | {"firstname": "abc", "lastname": "def"} |
fname and lname match the mapping keys, so the values abc and def are re-keyed to firstname and lastname. Switching the direction to Destination to Source would instead expect input keyed by firstname/lastname and produce fname/lname.
Input parameters
Source data object whose field names you want to map. Accepts static data or variables from previous nodes.
Field mapping configuration as a JSON object with key-value pairs.
Mapping direction, applied to the Mapping field’s key-value pairs:
- Source to Destination — input field names match the mapping keys; the output uses the mapping values.
- Destination to Source — input field names match the mapping values; the output uses the mapping keys.
Output
The node returns a standard response envelope. The mapped object — with transformed field names — is returned underbody. Only fields included in the Mapping appear in the output; unmapped input fields are dropped.
Adding to your workflow
Configure input data
Provide the source object from a previous node or static data. Input must be a flat JSON object.
Define field mapping
Create mapping rules as key-value pairs:
{"source_field": "destination_field"}.Select direction
Choose Source to Destination when sending data out, or Destination to Source when receiving data.
Examples
Map Internal Fields to NetSuite Contact
Transform internal contact data to NetSuite format: Input:Source to Destination
Output:
Map SAP Data to Internal Format
Transform incoming SAP vendor data to your internal structure: Input:{{sap_vendor_response}}
Destination to Source
Output:
Troubleshooting
| Problem | Solution |
|---|---|
| Missing fields in output | Verify field names in mapping exactly match input (case-sensitive) |
| Wrong mapping direction | Check direction setting matches your data flow |
| Empty output | Confirm input is not null and contains at least one mapped field |
| Nested field errors | Use Transform node for nested objects |
Next steps
Transform node
Run complex JSON transformations.
Custom Code node
Process fields with advanced logic.
Variables
Use mapped data in subsequent nodes.