> ## 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 data file export profile for Pega

> Add a script export profile to an ABBYY FlexiCapture Document Definition that exports captured data to XML files for the Pega connector, and then publish it.

## Create the export profile

<Steps>
  <Step title="Open the Document Definition">
    1. On the ABBYY FlexiCapture Project Setup Station, click **Project → Document Definitions** to open the list of Document Definitions available for the project.
    2. Select the Document Definition you want to specify new export settings for.
    3. Click **Edit**.
  </Step>

  <Step title="Start the export profile wizard">
    1. Click **Document Definition → Export Settings**.
    2. Click **Add**.
  </Step>

  <Step title="Select the destination type">
    On the **Select the Type of Destination** step:

    1. Select **Export to data files** from the **Type** drop-down list.
    2. Select **Errors are irrelevant** from the **Document condition** drop-down list.
    3. Click **Next**.
  </Step>

  <Step title="Set the export path and file name">
    On the **Export Data to Files** step, make sure the **Export path** field is empty and specify a file name template. Click **Next**.
  </Step>

  <Step title="Select the data file format">
    On the **Data File Format** step, select **XML Document (`*.xml`)** in the **File type** field, and then click **Next**.
  </Step>

  <Step title="Name the export profile">
    Provide a name for the new export profile, and then click **Finish**.
  </Step>

  <Step title="Enable the export profile">
    In the **Export Settings** dialog box, select the **Enabled** option for the new export profile. Click **Apply**, and then click **OK**.
  </Step>

  <Step title="Publish the Document Definition">
    Save and close the Document Definition editor, and then click **Publish**.
  </Step>
</Steps>
