9. 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.

  1. In Sitecore, open Content Editor.

  2. Navigate to sitecore > system > Data Exchange > Data Exchange Tenant for News API > Data Access > Value Accessor Sets > Providers.

  3. Add Sitecore Value Accessor Sets.

    Hint

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

    use-restful-provider\news\create-connector\_static/add-value-accessor-sets.png

    The new value accessor sets folder in Content Editor.

    use-restful-provider\news\create-connector\_static/value-accessor-set-for-target.png
  4. Navigate to sitecore > system > Data Exchange > Data Exchange Tenant for News API > Data Access > Value Accessor Sets > Providers > Sitecore.

  5. Add Sitecore Item Field Value Accessor Set with the following field values:

    Name Value
    Name Article Item Fields

The new value accessor set in Content Editor.

use-restful-provider\news\create-connector\_static/value-accessor-set-for-target.png
  1. Navigate to sitecore > system > Data Exchange > Data Exchange Tenant for News API > Data Access > Value Accessor Sets > Providers > Sitecore > Article Item Fields.

  2. Add Sitecore Item Field Value Accessor with the following field values:

    Name Value
    Name Source Id
    Field Templates > Feature > Data Exchange > News API > News API Article > Article Source > Source Id
  3. Add Token Value Accessor with the following field values:

    Name Value
    Name Source Name
    Field Templates > Feature > Data Exchange > News API > News API Article > Article Source > Source Name
  4. Add Token Value Accessor with the following field values:

    Name Value
    Name Author
    Field Templates > Feature > Data Exchange > News API > News API Article > Article > Author
  5. Add Token Value Accessor with the following field values:

Name Value
Name Title
Field Templates > Feature > Data Exchange > News API > News API Article > Article > Title
  1. Add Token Value Accessor with the following field values:
Name Value
Name Description
Field Templates > Feature > Data Exchange > News API > News API Article > Article > Description
  1. Add Token Value Accessor with the following field values:
Name Value
Name Url
Field Templates > Feature > Data Exchange > News API > News API Article > Article > Url
  1. Add Token Value Accessor with the following field values:
Name Value
Name Image Url
Field Templates > Feature > Data Exchange > News API > News API Article > Article > Image Url
  1. Add Token Value Accessor with the following field values:
Name Value
Name Published At
Field Templates > Feature > Data Exchange > News API > News API Article > Article > Published At

The new value accessors in Content Editor.

use-restful-provider\news\create-connector\_static/sitecore-item-value-accessors.png