1. Implement an endpoint

Create a template for an endpoint

Version:

You use the Sitecore Content Editor to model the data synchronization processes. This lets you use a familiar interface for doing the configuration. The configuration requires a template that you can use to represent a text file that Sitecore can read from.

This configuration requires a template that you can use to represent a text file that Sitecore can read from.

Create a template

To create a template:

  1. In the Content Editor, navigate to Templates.

  2. On the menu ribbon, in the Insert group, click New Template.

    New template option in menu ribbon
  3. In the Select name dialog, enter the following values:

    FieldValue
    NameText File Endpoint
    Base templateTemplates/Data Exchange/Framework/Endpoints/Base Template/ Base Endpoint
  4. Click Next.

  5. In the Location dialog, select Templates/Data Exchange/Providers/File System/Endpoints. Click Next.

  6. In the confirmation dialog, click Close.

Set an icon

To set an icon:

  1. In the Content Editor, select the new template, for example, Templates/Data Exchange/Providers/File System/Endpoints/Text File Endpoint.

    Text File Endpoint template in content tree
  2. In the right-hand pane, click the Content tab.

  3. On the Content tab, click the icon next to the title.

    Title icon
  4. In the Change Icon dialog, in the Icon field, enter the name of the icon, for example, Office/32x32/cloud.png.

  5. Click OK.

Add a template field

In the text file endpoint, you must configure the settings that tell Sitecore how to parse the text file. For example, you can specify if data is on a single line or multiple lines, which column separator the file uses, and whether the file contains a line with column headers.

To add these settings:

  1. Navigate to Data Exchange/Providers/File System/Endpoints/Text File Endpoint.

  2. Add a template section. Name it Settings.

  3. On the Builder tab, in the Settings section, add the following template fields:

    NameTypeShared
    PathSingle-Line Textselected
    ColumnSeparatorSingle-Line Textselected
    ColumnHeadersInFirstLineCheckboxselected
  4. Save the item.

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