> ## 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 script export profile

> Create a script export profile in a Document Definition to export data from ABBYY FlexiCapture to Blue Prism via the FlexiCapture 12 Listener web service.

To be able to export data from FC to Blue Prism via a web service, you need to configure a script export profile in the Document Definition.

To create an export profile for Blue Prism:

1. On the **Project Setup Station** open your FC project.\
   **Note:** Make sure that all the necessary [assemblies are added](/flexi-capture/connectors/blue-prism/bp-connect-libraries) to the Document Definition.
2. Click **Project →** Document Definitions... to open the list of Document Definitions available for the project, select the Document Definition for which you want to specify new export settings, and click Edit....
3. Click **Document Definition →** Export Settings....
4. Click the Add... button to start the export profile creation wizard.
5. In the Select the Type of Destination step, select Custom export (script) from the Type drop-down list and then select **Errors are irrelevant** in the **Document condition** field. Leave the other settings unchanged or modify them as described in [Export settings](/flexi-capture/templates/export-main).
6. In the Script Export step, click the Edit Script... button, select **C# .Net** script language, and paste into the script editor one of the two sample scripts provided in the connector files: **BluePrism - ExportScript - Configure by script.cs** or **BluePrism - ExportScript - Configure by XML.cs**. For detailed instructions on using each of these scripts, see [Using a script to specify export settings](/flexi-capture/connectors/blue-prism/bp-export-script) and [Using an XML file to specify export settings](/flexi-capture/connectors/blue-prism/bp-export-xml) below. You can always edit this script later, but for the moment, save the changes and close the script editor. Detailed instructions for setting up your export script will be provided below.
7. In the Select the Destination Name step, specify a name for your export profile and click **Finish**.
8. The newly created export profile will appear in the list of available export profiles in the export settings dialog box. To make ABBYY FlexiCapture use this profile on Export stage, select the box next to the profile in the **Enabled** column.
9. Click **OK**, and then save and close the Document Definition editor. Next, click the **Publish** button to publish your Document Definition.

<Note>
  If documents are being processed within the project at the time when you add your new export profile, update them to the latest version by pressing **Alt+Shift+U** or by selecting **Update to Latest Version** from their shortcut menu.
</Note>

Once the processing is completed, the document and its metadata are sent from the export stage to Blue Prism via the ABBYY FlexiCapture 12 Listener web service. The export process is logged in the Task Log on the Processing Server.

<Note>
  The event logs are also available on the **Processing Monitor** tab of the Administration and Monitoring Console.
</Note>

When the export completes successfully, the ABBYY FlexiCapture 12 Listener web service will save the export results on the Blue Prism server in the file format specified by the user.
