Add Value to Synchronize

The default value mappings are described in the Default Value Mappings section. These mappings can be changed, and new mappings can be added.

In order to add a new field, you must know the attribute from the CRM contact that you want to read, and the property on the xDB contact that you want to write.

Identify CRM Contact Attribute

Your CRM administrator is able to provide you with the names of the attributes that are available in your CRM.

Identify xDB Contact Property

Values are stored on xDB contacts through contact facets. The contact facets that are available on your Sitecore server depend on how your system has been configured.

Your Sitecore administrator is able to provide you with the information about the available contact facets and the values stored on each.

Define Value Accessors

A value accessor represents a value that can be read or written during the synchronization process. Two value accessor items must be created: one for the CRM campaign attribute and the xDB contact property identified in the previous steps.

Value Accessor for CRM Contact

The value accessor for the CRM contact is used to read the attribute whose value is written to the xDB contact.

  1. In Content Editor, navigate to your tenant.
  2. Navigate to Data Access > Value Accessor Sets > Providers.
  3. Navigate to Dynamics CRM > CRM Contact Attributes.
  4. Insert a new item using the template Entity Attribute Value Accessor.
  5. In the field Attribute name, enter the name of the attribute from the section Identify CRM Contact Attribute.
  6. Save the item.

Value Accessor for xDB Contact

The value accessor for the xDB contact is used to write the value read from the CRM contact to the xDB contact.

Defining the value accessor for the xDB contact is more complicated than the one for the CRM contact. There is a much greater variety of ways that data can be stored on an xDB contact than on a CRM contact.

As a result, you must select the appropriate template for the value accessor.

Hint

The available templates are described in the xDB section under Contact Templates.

  1. Navigate to your tenant.
  2. Navigate to Data Access > Value Accessor Sets > Providers.
  3. Navigate to Sitecore > xDB Contact Entity Fields.
  4. Insert a new item using the template that is appropriate for the value identified in the section Identify xDB Contact Property.
  5. Set the required fields.
  6. Save the item.

Define Value Mapping

A value mapping associates the value accessor used to read a value with the value accessor used to write a value.

In this case, the value mapping associates the value accessor used read the attribute value from a CRM contact with the value accessor used to write the property value to an xDB contact.

  1. In Content Editor, Navigate to your tenant.
  2. Navigate to Value Mapping Sets > CRM Contact to xDB Contact.
  3. Insert a new item using the template Value Mapping.
  4. In the field Value accessor for source object, select the Value Accessor for CRM Contact.
  5. In the field Value accessor for target object, select the Value Accessor for xDB Contact.
  6. Save the item.

This setting will take affect the next time the synchronization process runs.