/UpdatePersonalFacets.cs Secret
Created
January 19, 2016 19:58
Star
You must be signed in to star a gist
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