Add a pipeline step to resolve the target item

Version:

The first pipeline step must check if there is an existing Sitecore item that matches the value from the text file row.

If the pipeline finds a matching item, it must set that item as the target object in the pipeline context. This means that during the mapping process, the pipeline updates the matching item with the new values.

If the pipeline does not find a matching item, it must create a new item, and set the new item as the target object in the pipeline context.

To set up these actions in the pipeline:

  1. In the Content Editor, navigate to the pipeline item you want to create a step for, for example, City Info from File to City Info Item Sync Pipeline.

    City Info From File to City Info Item Sync pipeline in the content tree
  2. In the right-hand pane, click Resolve Sitecore Item Pipeline Step. Name the new item Resolve City Info Item. Select the new item.

  3. Select the new item.

    Resolve City Info item in the content tree
  4. In the right-hand pane, specify the following field values:

    FieldValue
    Template for New ItemTemplates/User Defined/City Information
    Item Name Value AccessorData Access/Value Accessor Sets/Providers/File System/City Information File Fields/City from City Information File
    Endpoint FromSitecore/Sitecore Database Endpoint
    Identifier Value AccessorData Access/Value Accessor Sets/Providers/File System/City Information File Fields/Identifier from City Information File
    Identifier Object LocationPipeline Context Source
    Resolved Object LocationPipeline Context Target
    Parent for Itemsitecore/content/Cities
    Matching Field Value AccessorData Access/Value Accessor Sets/Providers/Sitecore/City Information Item Fields/Identifier on City Information Item
  5. Save the item.

If you have suggestions for improving this article, let us know!