Enable the export of custom facets to a CSV file
You can create custom contact facets to include contact information that your organization wants to track, for example, addresses, country, or company.
If you want these custom contact facets to appear in the CSV file when you export lists of contacts from the List Manager, you must configure the listManagement.exportContacts pipeline.
You must index new custom contact facets before you export them from the List Manager.
To enable the export of custom facets to a CSV file:
-
Create a new
GetCustomContactRowsclass, making sure it is inherited from the existing classSitecore.ListManagement.ContentSearch.Pipelines.ExportContacts.GetContactRows, Sitecore.ListManagement.ContentSearch.Override the protected
GetRowmethod to export the relevant facets, for example,Company. -
In the
App_Config\Include\ListManagement\Sitecore.ListManagement.configfile, in thelistManagement.exportContactspipeline, delete the existingGetContactRowsprocessor and register the new one: