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

# IExportAttachments

> IExportAttachments object in ABBYY FlexiCapture Scanning Station scripts: checks for and saves binary attachments associated with exportable batch items.

## What it does

Applies for associating user binary data or files with workspace items.

## Methods

| **Definition**                          | **Description**                                                                     |
| --------------------------------------- | ----------------------------------------------------------------------------------- |
| Has (name: string): bool                | Checks whether the attachments array contains an attachment with the specified name |
| SaveToFile (name: string, path: string) | Saves the attachment with a specified name to a specified path                      |

## Properties

| **Name**                 | **Type**                                                                               | **Access** | **Description**                                          |
| ------------------------ | -------------------------------------------------------------------------------------- | ---------- | -------------------------------------------------------- |
| Names                    | VARIANT                                                                                | Read-only  | The array of attachments names                           |
| IsEmpty                  | bool                                                                                   | Read-only  | Specifies whether the array of user attachments is empty |
| ByteArray (name: string) | [IAttachmentByteArray](/flexi-capture/scanning-station/shared/scripts/attachment-byte) | Read-only  | Retrieves binary data of the attachment by its name      |
