Skip to main content

Posts

Showing posts with the label DEF

Sitecore 9 Dynamic CRM Connector: Sync Sitecore custom facets with Dynamic CRM (Part 2)

Sitecore 9 Dynamic CRM Connector: Sync Sitecore custom facets with Dynamic CRM (Part 2) In  previous  article I have created custom facets in Sitecore for CRM connector, Now in this article I am going to sync these custom facets with Dynamic CRM. Step 1: Specify how to write to the Contact facet Navigate to this location “/sitecore/system/Data Exchange/XXX/Data Access/Value Accessor Sets/Providers/Dynamics/Dynamics Contact” Add the following item. Template : Entity Attribute Value Accessor Item Name: GraduateYear on Dynamics Contact Set the following field values: Attribute Name: CRM Field Name Value Type: Option Set Value (If dropdown otherwise blank for single line Step 2: Specify how to read from the Dynamics contact Navigate to this location “/sitecore/system/Data Exchange/XXX/Data Access/Value Accessor Sets/Providers/xConnect” Add the following item. Template : xConnect Entity Facet Value Accessor Set Item Name: xConnect Contact Custom Information F

Sitecore 9 Dynamic CRM Connector: Create custom facets (Part 1)

Sitecore 9 Dynamic CRM Connector: Create custom facets (Part 1) Dynamic CRM Connector will provide you default facets like first name, last name etc. but you can also create custom facets and sync to CRM. Step 1: Create a Visual Studio project Create Class Library (.Net Framework) project Add below reference from NuGet:  Sitecore.DataExchange.Tools.DynamicsConnect.NoReferences Sitecore.XConnect.NoReferences Step 2: Implementation of Custom facets Create new class to create custom facet “Student” and add following code: using Sitecore.XConnect; using System; namespace YourNamespace { [FacetKey(DefaultFacetKey)] [Serializable] public class StudentFacets: Facet { public const string DefaultFacetKey = "Student"; public string GraduateYear { get; set; } } } Step 3: Implementation of collection model After creating Custom facets class, you need to create Collection model w