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

# Export completed

> Inspect export results with the Export completed event script, which runs after each FlexiCapture export task whether the export succeeded or failed.

## What it does

Export results are passed to this script as input parameters.

## When it is launched

The script is launched after the export task is completed. If the Process entire batches option is selected for the Export stage, the task will contain all documents of the batch. If the option is deselected, the number of documents in the task can vary from one document to all documents of the batch. The script is launched irrespective of the export result (whether it succeeded or failed). This is the main difference of this script from the event [Document state changed](/flexi-capture/appendix/scripts/documentstate-change).

If some export targets are omitted (as the document has been exported to those targets earlier), then for the corresponding export results, the value of the **Applied** flag will be **false**.

## Parameters

| **Name**      | **Type**                                                                              | **Access**                                                                                                                                | **Description**                                         |
| ------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| ExportResults | [IDocumentsExportResults](/flexi-capture/appendix/scripts/i-documents-export-results) | Read-only. Internal[\*](/flexi-capture/appendix/scripts/script-afterexport#asterisk) fields of batch documents and pages are unavailable. | Export results for all documents and all export targets |
| Processing    | [IProcesingCallback](/flexi-capture/appendix/scripts/iprocessingcallback)             | Read/write                                                                                                                                | The object for logging the information about processing |

<a id="asterisk" />\* - The internal field requires loading the object into memory.
