Configure the Import contacts wizard to include custom contact facets
In the List Manager, when you import contacts from a CSV file, you can map fields from the imported file to the following default Sitecore fields:
-
Identifier
-
Identifier source
-
Email address
-
First name
-
Last name

If the marketer needs additional Sitecore fields to map the imported file fields to, you can extend the Import contacts wizard to include:
-
Predefined contact facets – the available predefined contact facets that you can add to the Import contacts wizard are:
-
PersonalInformation
-
EmailAddressList
-
AddressList
-
PhoneNumberList
-
ConsentInformation
-
ListSubscriptions
-
AutomationPlanExit
-
AutomationPlanEnrollmentCache
-
Avatar
-
-
New custom contacts facets – you can create a custom facet and then update the model configuration to include it in the Import contacts wizard.
Add a predefined facet as a mapping field using the Insert menu
Add a predefined facet as a mapping field using the Insert menu
A subset of the predefined facets can be added as contact mapping fields using template branches. To add one of these facets to the Import contacts wizard, follow this procedure:
To add a predefined mapping field:
-
In the Core database, in the Content Editor, navigate to the /sitecore/client/Applications/List Manager/Dialogs/ImportWizardDialog/PageSettings/TabControl Parameters/Map/ImportModel folder.
-
Right-click the
ImportModelfolder, click Insert and then click one of the predefined contact mapping fields.
Add a predefined facet as a mapping field by creating an import model field
Add a predefined facet as a mapping field by creating an import model field
Some predefined facets are not on the Insert menu for adding fields to the Import contacts wizard. To display one of these predefined facets as a Sitecore mapping field, you create a new import model field for the predefined facet in the Content Editor.
To add a new facet as a mapping field:
-
In the Core database, in the Content Editor, navigate to the /sitecore/client/Applications/List Manager/Dialogs/ImportWizardDialog/PageSettings/TabControl Parameters/Map/ImportModel folder.
-
Create a new Import model field item based on the /sitecore/client/Applications/List Manager/Templates/ImportModelField template. To do this, in the ImportModel folder, duplicate one of the existing items.
-
To modify the new item, in the FieldName field, specify the name of the Sitecore mapping field to display in the Import contacts wizard.
-
In the DataField field, specify the key that the Facet Mapper uses to recognize the xConnect facet property of where to store the imported value. For example, name it Personal_Suffix and later use this key to fill the Suffix field of the Personal facet:

The Required field specifies if the field mapping must to be specified on the Map tab of the Import contacts wizard. This is a UI validation only. If you want to mark a mapping field as required, you must also add the mapping field to the list of required fields in the
Sitecore.ListManagement.configfile, in theListManagement.Import.RequiredFieldssetting:
During an import, if a required field is empty, the entire line from the import file is skipped. The default required fields for List Manager are: Identifier, Email, First name, and Last name.
Extend an existing import mapper
Extend an existing import mapper
The List Manager provides a range of default facet mappers, however, if you want, you can extend these facet mappers. For example, the EmailAddressList facet contains an advanced dictionary of emails called Others.
In the following example, the code sample decorates the existing PreferredEmailMapper class to enable you to add personal and work emails to the EmailAddressList.Others dictionary.
To extend an existing Import mapper:
-
Create and implement the
ExtendedEmailFacetMapperSampleclass to decorate the existingPreferredEmailFacetMapperclass: -
Register the facet mapper in the
Sitecore.ListManagement.configfile under thesitecore/import/facetMappersection:
Create a new import mapper
Create a new import mapper
If you cannot use any of the existing import mappers, you can create a custom import mapper, for example, a PreferredAddressFacetMapper.
To create a new import mapper:
-
Create a new
PreferredAddressFacetMapperthat implementsSitecore.ListManagement.Import.IFacetMapper: -
In the
Sitecore.ListManagement.configfile, under thesitecore/import/facetMappersection, register the mapper: -
In the
Sitecore.ListManagement.configfile, add theAddressesfacet name to extend the list of facets to map to.
For this example, the PreferredAddressFacetMapper item in the content editor, in the DataField section should contain a key that relates to one of the properties of the AddressList facets, for example, City,AddressLine1, CountryCode, and so on.
Display custom fields in contact lists
Display custom fields in contact lists
To display a custom facet in the contact list, you must also Add a column to the Contacts list.