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

> Customize export in ABBYY FlexiCapture with an export script: Document and Processing parameters, the global export module, and external assemblies.

## What it does

This script allows you to customize export.

The script rule is configured on the Export Destinations tab of the  *(Administrator)* [Document Definition properties](/flexi-capture/templates/template-properties) *(Developer)* Document Definition properties.

## Parameters

| **Name**   | **Type**                                                                   | **Access** | **Description**                                         |
| ---------- | -------------------------------------------------------------------------- | ---------- | ------------------------------------------------------- |
| Document   | [IDocument](/flexi-capture/appendix/scripts/idocument)                     | Read-only  | The document to be exported                             |
| Processing | [IProcessingCallback](/flexi-capture/appendix/scripts/iprocessingcallback) | Read-only  | The object for logging the information about processing |

<Note>
  Information on export results must be written to the **Document.Action** field.
</Note>

Procedures that you wish to use in more than one export script be written to the global export module, which can be accessed from the script editor. From the drop-down list on the toolbar of the script editor, select Export Global Script Module. The global export module can also be accessed from the Document Definition editor (**Document Definition → Script Modules →** Export Script...).

If classes and methods of an [external assembly](/flexi-capture/appendix/scripts/user-assembly) are used in the script or global module, the assembly file must be attached on the .NET References  tab of the Document Definition properties.

## (Administrator) See also:

*(Administrator)*  [Export described with a script](/flexi-capture/templates/export-script)
