17. Add Pipelines to Handle Single CRM AccountΒΆ
Each account membership entity read from CRM is mapped to a Sitecore contact. A Pipeline is used to define the logic that resolves the Sitecore contact and applies data from the CRM entity.
- Navigate to your tenant.
- Navigate to Pipelines > CRM Account Pipelines.
- Add the following item:
Template Pipeline Name CRM Account Membership to xDB Contact Sync Pipeline
- Navigate to CRM Account Membership to xDB Contact Sync Pipeline.
- Add the following item:
Template Resolve xDB Contact from Repository Pipeline Step Name Resolve xDB Contact from Repository
- Set the following field value:
Field Endpoint to read data from Value Sitecore > Local xDB Contacts Endpoint
- Set the following field value:
Field Identifier value accessor Value Value Accessor Sets > Providers > Dynamics CRM > CRM Contact Attributes > Email
- Set the following field value:
Field Identifier object location Value Pipeline Context Source
- Set the following field value:
Field Resolved object location Value Pipeline Context Target
- Save the item.
- Navigate to CRM Account Membership to xDB Contact Sync Pipeline.
- Add the following item:
Template Resolve xDB Contact from Queue Pipeline Step Name Resolve xDB Contact from Queue
- Set the following field value:
Field Endpoint to read data from Value Endpoints > Common > Queue Endpoint
- Set the following field value:
Field Identifier value accessor Value Value Accessor Sets > Providers > Sitecore > xDB Contact Properties > xDB Contact Identifier
- Set the following field value:
Field Identifier object location Value Pipeline Context Target
- Set the following field value:
Field Resolved object location Value Pipeline Context Target
- Save the item.
- Navigate to CRM Account Membership to xDB Contact Sync Pipeline.
- Add the following item:
Template Apply Mapping Pipeline Step Name Apply Mapping
- Set the following field value:
Field Mapping set Value Value Mapping Sets > CRM Account Membership to xDB Contact
- Save the item.
- Navigate to CRM Account Membership to xDB Contact Sync Pipeline.
- Change the order of the child items to the following:
- Resolve xDB Contact from Repository
- Resolve xDB Contact from Queue
- Apply Mapping