Import Mapper
CRM · ImportMapper, Panel
Map the columns of an uploaded CSV to CRM fields: sample values per column, a field picker, the required fields still missing, and the rows that will fail.
- Columns can be skipped;
problemslists rows with their message so they can be fixed before the import.
Import contacts
contacts-export.csv
1,204 rowsReady to import2 rows with problems
| Column | Sample values | Import as |
|---|---|---|
| Vorname | Lena · Jonas · Ayşe | |
| Nachname | Hartmann · Pick · Demir | |
| lena@nordhafen.de · jonas@pick.studio | ||
| Firma | Nordhafen Outdoor · Pick Studio | |
| Telefon | +49 40 2287 1190 · 0172 5550 123 | |
| Notizen | Met at OMR |
- Row 17: Email is not valid
- Row 245: Email already exists (merge or skip)
Props
ImportMapper
| Prop | Type | Notes |
|---|---|---|
columns | { name: string; samples: string[] }[] | The file's columns with a few sample values. |
fields | { id: string; label: string; required?: boolean }[] | The fields records can take. |
mapping | Record<string, string> | Column → field id ("" to skip). |
onChange? | (mapping: Record<string, string>) => void | |
rows? | number | Rows in the file. |
problems? | { row: number; message: string }[] | Problems found in the rows. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |