Hi,
I need to fetch contact information from xconnect (List manager) , using below code snippet to fetch specific contact detail :
using (Sitecore.XConnect.Client.XConnectClient client = Sitecore.XConnect.Client.Configuration.SitecoreXConnectClientConfiguration.GetClient())
{
try
{
var reference = new Sitecore.XConnect.ContactReference(Guid.Parse("B9814105-1F45-E611-82E6-34E6D7117DCB"));
Contact contact = client.Get<Contact>(reference, new Sitecore.XConnect.ContactExpandOptions() { });
}
catch (XdbExecutionException ex)
{
}
}
}
sitecore documentation : https://doc.sitecore.com/developers/93/sitecore-experience-platform/en/get-contacts.html
Getting error on line :
Sitecore.XConnect.Client.Configuration.SitecoreXConnectClientConfiguration.GetClient()
Error message :
The Type initializer for sitecore.XConnect.CollectionM.Model.CollectionModel threw an exception
Any blog or hint help
Thank you