---
title: "Create a template for value accessors"
slug: "create-a-template-for-value-accessors"
abstract: "How to specify which array values to read by creating a value accessor template in Sitecore Data Exchange Framework."
---
# Create a template for value accessors

In this walkthrough, each row from the input text file is split into an array of values. The individual values in the array can be used in a data synchronization process. You must configure a template that lets a user specify which value in the array to read.

<details>
<summary><h2>Create a template for value accessors</h2></summary>

To create a template:

1. In the Content Editor, navigate to *Templates*.
2. On the menu ribbon, on the **Home** tab, click **New Template**.

    ![New Template option on menu ribbon](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/add-template.png)

3. In the **Select name** dialog, enter the following values:

    | Field | Value |
    | --- | --- |
    | **Name** | *Array Value Accessor* |
    | **Base template** | *Templates/Data Exchange/Framework/Data Access/Value Accessors/Value Accessor* |

4. Click **Next**.
5. In the **Location** dialog, select *Templates/Data Exchange/Providers/File System/Data Access/Value Accessors*. Click **Next**.
6. In the confirmation dialog, click **Close**.

</details>

<details>
<summary><h2>Set an icon for a value accessor</h2></summary>

To set an icon:

1. In the Content Editor, in the content tree, select the new template, for example, *Templates/Data Exchange/Providers/File System/Data Access/Value Accessors/Array Value Accessor*.

    ![Array value accessor selected in content tree](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/new-template-selected.png)

2. In the right-hand pane, on the **Content** tab, click the icon next to the title.
3. Click the icon next to the title.

    ![Content tab showing title icon with mouse cursor pointing to it](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/icon.png)

4. In the **Change Icon** dialog, in the **Icon** field, enter, for example, *Office/32x32/radio_button_selected.png*.C
5. Click **OK**.

</details>

<details>
<summary><h2>Add a field</h2></summary>

To add a field:

1. On the new template, add a template section and name it *Settings*.
2. Add the following fields:

    | Field | Value |
    | --- | --- |
    | **Name** | *Position* |
    | **Type** | *Integer* |
    | **Shared** | selected |

3. Save the item.

</details>