Map Data from MongoDB to Contact Identifier

Specify Value for xConnect Contact Identifier Source

Since xDB Migration Tool is pre-configured to create contact identifiers, components needed to read the Identifier and Identifier type values already exist in the tenant. You only need to create the component needed to read the Source value.

  1. In Content Editor, select your tenant.
  2. Navigate to Data Access > Value Readers > Providers > xConnect
../../_images/xconnect-value-readers-root.png
  1. Add the following item:
Template Constant Value Reader
Item name Constant Value - Contact Identifier Source for Loyalty Program
  1. Select the new item.
../../_images/value-reader-for-loyalty-program-source.png
  1. Set the following field values:
Field Value
Value Loyalty.Program
Value Type String
  1. Save the item.
  2. Select your tenant.
  3. Navigate to Data Access > Value Accessors > Providers > xConnect
../../_images/value-accessor-for-loyalty-program-source.png
  1. Add the following item:
Template Value Accessor
Item name Source for Contact Identifier for Loyalty Program
  1. Select the new item.
  2. Set the following field values:
Field Value
Value Reader Value Readers > Providers > xConnect > Constant Value - Contact Identifier Source for Loyalty Program
  1. Save the item.

Add Mapping for xConnect Contact Identifier Constructor

xConnect Contact Identifiers are instantiated using a constructor that requires three parameters. You must map values to the constructor parameters in order to create a new contact identifier.

  1. In Content Editor, select your tenant.
  2. Navigate to Value Mapping Sets > MongoDB to xConnect Contact Mappings
  3. Add the following item:
Template Value Mapping Set
Item name MongoDB Loyalty Program to xConnect Contact Identifier Constructor
  1. Select the item MongoDB Loyalty Program to xConnect Contact Identifier Constructor.
  2. Add the following item:
Template Value Mapping
Item name Source
  1. Select the new item.
  2. Set the following field values:
Field Value
Source Accessor Data Access > Value Accessors > Providers > xConnect > Source for Contact Identifier for Loyalty Program
Target Accessor Data Access > Value Accessor Sets > Providers > xConnect > xConnect Contact Identifier > Source on xConnect Contact Identifier Constructor
  1. Save the item.
  2. Select the item MongoDB Loyalty Program to xConnect Contact Identifier Constructor.
  3. Add the following item:
Template Value Mapping
Item name Identifier
  1. Select the new item.
  2. Set the following field values:
Field Value
Source Accessor Data Access > Value Accessor Sets > Providers > MongoDB > MongoDB Contact Loyalty Program > Membership Id on MongoDB Contact Loyalty Program
Target Accessor Data Access > Value Accessor Sets > Providers > xConnect > xConnect Contact Identifier > Identifier on xConnect Contact Identifier Constructor
  1. Save the item.
  2. Select the item MongoDB Loyalty Program to xConnect Contact Identifier Constructor.
  3. Add the following item:
Template Value Mapping
Item name Identifier Level
  1. Select the new item.
  2. Set the following field values:
Field Value
Source Accessor Data Access > Value Accessors > Providers > xConnect > Known Contact Identification Level for xConnect Accessor
Target Accessor Data Access > Value Accessor Sets > Providers > xConnect > xConnect Contact Identifier > Identifier Type on xConnect Identifier Constructor
  1. Save the item.

Add Value Accessor for Custom Identifier

  1. In Content Editor, select your tenant.
  2. Navigate to Data Access > Value Accessor Sets > Providers > xConnect > xConnect Contact
  3. Add the following item:
Template xConnect Contact Identifier Value Accessor
Item name Loyalty Program Identifier on xConnect Contact
  1. Set the following field values:
Field Value
Constructor Mapping Set Value Mapping Sets > MongoDB to xConnect Contact Mappings > MongoDB Loyalty Program to xConnect Contact Identifier Constructor
  1. Save the item.

Add Mapping for xConnect Contact Identifier to Entity Model for Contact

  1. In Content Editor, select your tenant.
  2. Navigate to Value Mapping Sets > MongoDB to xConnect Contact Mappings > MongoDB Contact to Contact Model
../../_images/mongodb-contact-to-contact-model.png
  1. Add the following item:
Template Value Mapping
Item name Loyalty Program Identifier
  1. Select the new item.
../../_images/loyalty-program-identifier.png
  1. Set the following field values:
Field Value
Source Accessor Data Access > Value Accessor Sets > Providers > MongoDB > MongoDB Contact > Loyalty Program on MongoDB Contact
Target Accessor Data Access > Value Accessor Sets > Providers > xConnect > xConnect Contact > Loyalty Program Identifier on xConnect Contact
  1. Save the item.