7.8. Add Value Accessor Set for TargetΒΆ

The target object is a Sitecore item. The value accessor set defines the fields that can be set on the item.

First you must create the folder into which the value accessor set can be added.

  1. Navigate to your tenant.

  2. Navigate to Data Access > Value Accessor Sets > Providers.

  3. Add the following item:

    Template Sitecore Value Accessor Sets Root

    Hint

    This template is a command template. It does not prompt for the item name. The command template assigns the item name automatically.

    Note

    If you are configuring this provider on an existing tenant, this folder may already exist.

The new value accessor sets folder in Content Editor.

../../_images/sitecore-value-accessor-sets-root.png

Next you must add a value accessor set to the folder.

  1. Add the following item:

    Template Sitecore Item Field Value Accessor Set
    Name City Information Item Fields

The new value accessor set in Content Editor.

../../_images/value-accessor-set-for-target.png

Next you must add value accessor items to the value accessor set. These represent the fields that can be set on the Sitecore item that is the target object in the mapping process.

  1. Add the following item:

    Template Sitecore Item Field Value Accessor
    Name Identifier
  2. Set the following field values:

    Field Value
    Field Templates > User Defined > City Information > Data > Identifier
  3. Save the item.

  4. Navigate back to the value accessor set item.

  5. Add the following item:

    Template Sitecore Item Field Value Accessor
    Name Country
  6. Set the following field values:

    Field Value
    Field Templates > User Defined > City Information > Data > Country
  7. Save the item.

  8. Navigate back to the value accessor set item.

  9. Add the following item:

    Template Sitecore Item Field Value Accessor
    Name City
  10. Set the following field values:

    Field Value
    Field Templates > User Defined > City Information > Data > City
  11. Save the item.

The new value accessors in Content Editor.

../../_images/sitecore-item-value-accessors.png