Setup Required
1. Enable passthrough in settings
First, enable thepassThroughUnmappedColumns setting in your Dromo configuration:
When enabled, each row in your results will include a special
$unmapped property containing the unmapped column data.2. Update your resultsCallback
Modify your results callback to process both mapped and unmapped data:How It Works
Data Structure
WhenpassThroughUnmappedColumns is enabled:
$unmappedproperty: Added to each row containing unmapped column values- Format:
{ "0": "value1", "2": "value2" }(column index → value) metadata.rawHeaders: Array containing original file headers in order- Header mapping: Convert column indexes to actual column names using
rawHeaders[index]
Example Walkthrough
Original CSV File
Schema Definition
Let’s say your schema only maps two fields:Processed Results
WithpassThroughUnmappedColumns: true, you’ll receive:
