Skip to content
Twentyfirst UIHalo

Import Mapper

CRM · ImportMapper, Panel

View as Markdown

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; problems lists 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
ColumnSample valuesImport as
VornameLena · Jonas · Ayşe
NachnameHartmann · Pick · Demir
E-Maillena@nordhafen.de · jonas@pick.studio
FirmaNordhafen Outdoor · Pick Studio
Telefon+49 40 2287 1190 · 0172 5550 123
NotizenMet at OMR
  • Row 17: Email is not valid
  • Row 245: Email already exists (merge or skip)

Props

ImportMapper

PropTypeNotes
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.
mappingRecord<string, string>Column → field id ("" to skip).
onChange?(mapping: Record<string, string>) => void
rows?numberRows in the file.
problems?{ row: number; message: string }[]Problems found in the rows.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Panel

PropTypeNotes
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?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.