> ## 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.

# Creating a Data Transform record

> Create a Pega Data Transform record that maps the JSON string returned by the FlexiCapture Java function to case fields so captured values display in your case.

The Java function described in the [Installation](/flexi-capture/connectors/pega/pega-installation-2#java) section returns a JSON string. It is recommended that you transform this string so that the result is displayed as case fields. To do this, you need to create a record of type *Data Transform*.

To create a *Data Transform* record:

1. Open **Dev Studio** and create a new case type.

2. On the **Data model** tab, add the fields to be handled by your case and click **Save**.

   <Frame>
     <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega42.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=67a548d3e5000bbfc91217ba42070480" alt="Screenshot of the Data model tab in Pega Dev Studio showing the case fields Attachments, Currency, Invoice Date, Invoice Number, Line Items, and Total." width="985" height="491" data-path="images/flexi-capture/connectors/Pega42.png" />
   </Frame>

3. Click **Records → Data Model → Data Transform** and then click **Create** to open the **Create Data Transform** window.

4. In the **Label** field, specify a name for your new record.

5. In the **Additional configuration options** section, select **JSON**.

6. In the **Apply to** field, specify the full name of the case type you created earlier.

   <Frame>
     <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega28.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=7398cce5d56141d528175661961058f5" alt="Screenshot of the Create Data Transform window in Pega Dev Studio with the Label set to JsonToInvoiceFields, JSON selected as the data model format, and the Apply to field set to the case type." width="966" height="566" data-path="images/flexi-capture/connectors/Pega28.png" />
   </Frame>

7. Click **Create and open**. In the window that opens, map the JSON properties (displayed in the **JSON** column) to the case fields (displayed in the **Clipboard** column):

   <Frame>
     <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega29.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=4ec286ae4901e673c86b5ae7caa2c106" alt="Screenshot of the Edit Data Transform Definition tab in Pega Dev Studio mapping JSON properties to the Clipboard case fields .InvoiceNumber, .InvoiceDate, .Total, .Currency, and .LineItems." width="931" height="682" data-path="images/flexi-capture/connectors/Pega29.png" />
   </Frame>

8. Click **Save**.
