0

Using Sitecore 9.1.1 - we have a custom facet which we want to update using the List Manager import.

Following the sample on this page, to map a csv field to this custom facet it seems to be the case of simply updating the core database ImportModel for the ImportWizard Dialog. https://doc.sitecore.com/users/91/sitecore-experience-platform/en/configure-the-import-contacts-wizard-to-include-custom-contact-facets.html

However the value of my custom facet is never saved against the existing contact.

It's definitely matching on the contact because I can see updates to firstname and lastname based on importing, just not on the custom facet.

Any tips on what might have been missed?

This contact definitely has this facet already (although even if it didn't - I would hope that it would add it with the appropriate value).

My ImportModelField:

enter image description here

The contactFacet in the database where the value doesn't change. enter image description here

Is it sufficient just to add the core database entry - or do I also need a custom mapper class for my custom facet EmailData?

  • 1
    You need to follow the rest of the linked article and write the code for the import mapper. – Mark Gibbons Dec 10 '19 at 6:08
  • @MarkGibbons yep - managed to get that advice and implement so now all sorted. thanks :) – Jen Dec 11 '19 at 2:11
0

In case anyone else is looking for the answer - turns out I had to:

  • create a mapper class for my custom facet, implementing IFacetMapper
  • remember to handle the facet potentially being null for the contact in question
  • patch in the mapper class, and add my custom facet to the FacetsToMap element.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.