Create a Mapping Template
A mapping template tells Datatrax how to translate the columns in your CSV file into fields on a Salesforce object. You define it once and reuse it for every load of that file shape.
Create the mapping record
- In your Salesforce org, click the App Launcher (the grid icon in the top-left).
- Search for Datatrax and open the app.
- Click the Data Load Mappings tab.
- Click New.
- Fill in these fields before saving:
NameA unique, descriptive identifier. Example:
Account_CustomerMaster. This name is referenced in each Data Load Request.Object API NameThe API name of the Salesforce object you're loading data into. Example:Account,Contact,Opportunity. Set this before saving — the Column Mapping Builder needs it to load the field list.OperationChoose Insert (new records only), Update (existing records), Upsert (insert or update based on an external ID), or Delete.External ID FieldRequired for Upsert only. The API name of the field used to match records. Example:External_Id__c. - Leave Active unchecked for now and click Save. You'll activate it after building the column mapping.
Build your column mapping
After saving, the record page displays the Column Mapping Builder. This is the recommended way to define your mapping — it shows a searchable dropdown of every field on the target object and automatically sets the correct data type for each one.
- In the Column Mapping Builder card on the record page, you'll see a table with three columns: CSV Column Header, Salesforce Field, and Type.
- For each column in your CSV:
- Type the exact CSV column header into the CSV Column Header field (capitalization and spaces must match your file exactly).
- Select the target Salesforce field from the Salesforce Field dropdown. The dropdown is searchable and shows both the field label and API name.
- The Type column auto-fills based on the Salesforce field's data type. You can override it if needed.
- Click Add Row to add more columns.
- Click Save Mapping when all rows are complete. The builder writes the JSON to the Column Mappings field automatically.
- Edit the record and check the Active checkbox, then save. The mapping is now available for use in Data Load Requests.
Automatic type conversion
Non-string fields are automatically transformed to match what Salesforce expects before loading. You don't need to pre-format your data — Datatrax normalizes each value based on the field type in your mapping.
YYYY-MM-DD, M/D/YYYY, or M/D/YY. Two-digit years 00–30 become 2000–2030 and 31–99 become 1931–1999. Output is always ISO 8601 (YYYY-MM-DD). Excel exports that include a trailing time component (e.g. 2024-01-15 00:00:00) are handled automatically.YYYY-MM-DDTHH:MM:SSZ), US datetime format (M/D/YYYYTHH:MM:SSZ), Excel's US datetime export (M/D/YYYY H:MM, with optional seconds and AM/PM, e.g. 1/15/2024 2:30 PM), or date-only format (M/D/YYYY). When date-only is provided, the time defaults to 00:00:00Z (midnight UTC). Values with a timezone offset are converted to UTC. Values without a timezone are treated as UTC, not your local time — add an offset (e.g. -05:00) using the ISO format if your times are local. Fractional seconds are allowed but dropped. Output is always YYYY-MM-DDTHH:MM:SSZ.true, t, yes, y, 1 (→ true) and false, f, no, n, 0 (→ false). Case-insensitive.3.14, -42, 100. Thousand separators (commas) and scientific notation are not accepted — remove them before uploading.$, €, £, and others) is stripped automatically. So $1500.00 becomes 1500.0. Thousand separators (commas) are still not accepted.Examples:
# Date — both of these produce 2024-01-15 in Salesforce "Close Date": "2024-01-15" "Close Date": "1/15/2024" # DateTime — all of these produce 2024-01-15T14:30:00Z in Salesforce "Created At": "2024-01-15T14:30:00Z" "Created At": "2024-01-15T19:30:00+05:00" "Created At": "2024-01-15T09:30:00-05:00" "Created At": "1/15/2024T14:30:00Z" "Created At": "1/15/2024 14:30" "Created At": "1/15/2024 2:30 PM" # DateTime — date-only defaults to midnight (2024-01-15T00:00:00Z) "Created At": "1/15/2024" # Boolean — all of these produce true in Salesforce "Is Active": "Yes" "Is Active": "TRUE" "Is Active": "1" "Is Active": "Y"
Advanced: editing the JSON directly
If you need to edit the mapping outside of Salesforce (for example, to version-control it or bulk-create mappings via API), the Column Mappings field stores JSON in this format:
{
"Customer Name": {"field": "Name", "type": "string"},
"Email Address": {"field": "Email__c", "type": "string"},
"Annual Revenue": {"field": "AnnualRevenue", "type": "currency"},
"Is Partner": {"field": "IsPartner", "type": "boolean"},
"Close Date": {"field": "CloseDate", "type": "date"}
}
Each key is a CSV column header. Each value is an object with:
field— the Salesforce field API nametype— one ofstring,boolean,date,datetime,double,currency,integer,percent
Unmapped columns are ignored. If you edit the JSON directly, the Column Mapping Builder will reflect your changes the next time you open the record.