In today's Sitecore Tip of the Day, we will go over how to configure the Custom Item Generator to correctly map the Multilist with Search
field type. CIG is not configured to map the Multilist with Search
field type out of the box, but can be configured to do so with one simple config change.
Open up your CustomItem.config file and add the following setting to the <FieldMappings>
section:
CustomMultiListField
This works because the Custom Item Generator uses their own custom classes to represent and hold data for fields. Moreover, the Multilist with Search
field stores values the same way as the Multilist
field does (a pipe-delimited list of IDs), and thus its field value can be accessed using the same logic as the Multilist
.