7.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 ValueTemplate for new itemTemplates > User Defined >City InformationValue accessor for name for new objectData Access > Value Accessor Sets >Providers > File System >File System > City Information FileFields > CityEndpoint to read data fromSitecore > Sitecore Database EndpointIdentifier value accessorValue Accessor Sets > Providers >File System > City Information File Fields >IdentifierIdentifier object locationPipeline Context SourceResolved object locationPipeline Context TargetParent for item to resolvesitecore > content > CitiesValue accessor for Sitecore item fieldused to match the identifier valueData 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.