Created
February 7, 2020 00:54
-
-
Save dnstommy/905212188f51a062555a9f3a9d47d12a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var contactReference = this.contactIdentificationRepository.GetContactReference(); | |
using (var client = this.contactIdentificationRepository.CreateContext()) | |
{ | |
var facetsToGet = new List<string> | |
{ | |
AddressList.DefaultFacetKey, | |
EmailAddressList.DefaultFacetKey, | |
PhoneNumberList.DefaultFacetKey, | |
PersonalInformation.DefaultFacetKey | |
}; | |
var contact = client.Get(contactReference, new ContactExpandOptions(facetsToGet.ToArray())); | |
if (contact != null) | |
{ | |
/// facet work | |
client.Submit(); | |
contactFacetsProvider.UpdateTracker(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment