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

# Modify the script export profile

> Edit the ABBYY FlexiCapture script export profile so it runs only for verified documents by checking the WasVerified registration parameter for Blue Prism.

This profile applies to documents that have gone through the verification stage. To configure both unattended and attended processing for the same Document Definition, you must first create a script export profile and then modify it. For more information, see [Creating a script export profile](/flexi-capture/connectors/blue-prism/bp-export-profile).

## Add the verification check to the export script

<Steps>
  <Step title="Open the export script">
    In the **Export Settings** dialog box, click the **Edit...** button.
  </Step>

  <Step title="Add the verification code">
    Click the **Edit Script...** button and add the following code:

    ```csharp theme={null}
    using Abbyy.Connectors.Dms.ComFacade;
    using Abbyy.Infrastructure.Logging;
    using System.Collections.Generic;

    if (Document.Properties.Has("WasVerified")
        && Document.Properties.Get("WasVerified") == bool.TrueString)
    {
        // TODO: Place the main code of your export script inside these braces.
        //
        // Factory factory = new Factory();
        // . . .
    }
    ```
  </Step>
</Steps>

This script checks documents for the `WasVerified` registration parameter, which indicates whether the document has gone through the verification stage and, therefore, whether the user expects to receive verified data.

## Publish the modified Document Definition

After you modify the script, save and publish the Document Definition. To do this, close the Document Definition editor, and then click the **Publish** button.

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