> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a custom data type

> Add a custom data type in Pega Dev Studio, set its label and description, and then define its data model fields to hold captured ABBYY FlexiCapture values.

A custom data type holds the repeating values that ABBYY FlexiCapture returns, such as the line items of an invoice. Each field group in the case refers to one custom data type.

## Add the data type

<Steps>
  <Step title="Start a new data type">
    In **Dev Studio**, open the **Data types** context menu and select **Add data type**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega193.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=eeff0ccc05bdc9fa36a89905e8f56b7a" alt="Screenshot of the Data types explorer in Pega Dev Studio with the context menu open and Add data type highlighted." width="539" height="202" data-path="images/flexi-capture/connectors/Pega193.png" />
    </Frame>
  </Step>

  <Step title="Name the data type">
    Fill in the **Label** and **Description** fields.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega194.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=3b63ded550c45e011e96f7b2fa078255" alt="Screenshot of the Add Data Type dialog in Pega Dev Studio showing the Label and Description fields filled in for a new data type." width="653" height="534" data-path="images/flexi-capture/connectors/Pega194.png" />
    </Frame>
  </Step>

  <Step title="Add the fields">
    Click **Submit**. Then click the **Data model** tab and add the required fields.
  </Step>
</Steps>

## Related topics

* [Data types for a single-document processing case](/flexi-capture/connectors/pega/pega-one-doc-data-type)
* [Data types for a multi-document processing case](/flexi-capture/connectors/pega/pega-many-docs-data-types)
