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

# Configuring a script export profile

> Edit the FlexiCapture export script so it runs only for documents that passed the Verification stage, using the WasVerified registration parameter.

This profile will be executed if the document enters the verification stage.

To create a script profile, please go through the [Creating an export profile section](/flexi-capture/connectors/export-config-fc-ui-path).

Please edit the export script, by inserting the following code into it:

```
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: Put your main export script code here.
    // 
    // Factory factory = new Factory();
    // . . .
}
```

After updating the export script, you need to save and publish changes to the document definition. Please see the [Creating an export profile](/flexi-capture/connectors/creating-an-export-profile-ui-path) section for instructions.
