Define requirements
This walkthrough shows how to create a provider that can read and convert data from a text file. The first thing you must do is define the requirements for your provider. A good way to do this is to formulate user stories describing what you want to achieve.
The following user stories are examples of how to describe how someone responsible for building and managing synchronization processes uses text files:
-
I can specify a file to read from so that I can control which data is read.
-
I can specify whether or not the file contains a header row so that the provider does not impose constraints on the files it can read.
-
I can specify a limit to the number of rows to read from the file so that I can control the data that is read.
-
I can map the value from a column in the file to a field on a Sitecore item so I can populate Sitecore using data from the file.
This walkthrough explains how to build a provider that lives up to the requirements detailed in these user stories.