-
-
Save islaytitans/00616b8146f5ba0c713f to your computer and use it in GitHub Desktop.
How to set personal info Facets for Sitecore's xDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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