2. Add Templates for CRM Entity DataΒΆ

You have configured the ability for an xDB contact to be associated with
a CRM account. Now you must create a Sitecore template that can be used to store information about the CRM account.

Having Sitecore items that represent CRM accounts will allow your users to configure rules based on account membership. For example, a marketer will be able to personalize a web page based on whether or not a visitor is associated with a specific account.

The marketer must be able to select from a list of available accounts. This is the purpose of exposing CRM accounts as Sitecore items.

  1. In Sitecore, open Template Manager.
  2. Navigate to Templates > Data Exchange > Providers > Dynamics CRM > Folders.
  3. Add a new template named Accounts Folder.
  4. Set the icon for this template to Office/32x32/folder_open.png.
  5. Navigate to Templates > Data Exchange > Providers > Sitecore > Entities.
  6. Add a new template named External Account.
  7. Set the icon for this template to Office/32x32/office_building2.png.
  8. Add a section named Data.
  9. Add the following field:
Name AccountName
Type Single-Line Text
Shared ticked
  1. Navigate to Templates > Data Exchange > Providers > Sitecore > Entities > External Account > Data > AccountName.
  2. Set the following field value:
Field Title
Value Account Name
  1. Save the item.
  2. Add the following field:
Name AccountId
Type Single-Line Text
Shared ticked
  1. Navigate to Templates > Data Exchange > Providers > Sitecore > Entities > External Account > Data > AccountId.
  2. Set the following field value:
Field Title
Value Account ID
  1. Save the item.
  2. Open Content Editor.
  3. Navigate to your tenant.
  4. Navigate to Tenant Settings > Dynamics CRM.
  5. Add the following item:
Template Data Exchange > Providers > Dynamics CRM > Folders > Accounts Folder
Name Accounts