Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to set personal info Facets for Sitecore's xDB
IContactPersonalInfo contactPersonalInfo = contact.GetFacet<IContactPersonalInfo>("Personal");
if (string.IsNullOrEmpty(contactPersonalInfo.FirstName))
contactPersonalInfo.FirstName = OrderFormModel.FirstName;
if (string.IsNullOrEmpty(contactPersonalInfo.Surname))
contactPersonalInfo.Surname = OrderFormModel.LastName;
if (string.IsNullOrEmpty(contactPersonalInfo.JobTitle))
contactPersonalInfo.JobTitle = OrderFormModel.JobType;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment