8.11. Add Pipline Step to Resolve Target Item¶
The first pipeline step determines whether or not a Sitecore item already exists for the row from the text file.
Navigate to the pipeline City Info from File to City Info Item Sync Pipeline.
Add the following item:
Template Resolve Sitecore Item Pipeline Step Name Resolve City Info Item
Set the following field values:
Field Value Template for New ItemTemplates > User Defined >City Information Item Name Value AccessorData Access > Value Accessor Sets >Providers > File System >File System > City Information FileFields > City Endpoint FromSitecore > Sitecore Database Endpoint Identifier Value AccessorValue Accessor Sets > Providers >File System > City Information File Fields >Identifier 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 InformationItem Fields > Identifier
Hopefully, most of the fields are self-explanatory. One field that may be confusing to you is Identifier Object Location. The pipeline step processor uses this field to determine where to find the source object.
This value is specified in the pipeline step processor that iterates the data that is read from the text file. This is configured in a later step.
Save the item.
The pipeline in Content Editor.