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

# GetAttachmentNames

> Call GetAttachmentNames in the ABBYY FlexiCapture API to list the attachments of a given type for a document, page, or batch object.

## What it does

Gets a list of attachments of the specified type to the selected object.

## Definition

```
string[] GetAttachmentNames( int type, int objectId, int batchId, int projectId );
```

## Parameters

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>type</p></td><td><p>int</p></td><td><p>Type of attachment. Possible values:</p><ul><li><strong>9</strong> - attachment to a document;</li><li><strong>10</strong> - attachment to a page;</li><li><strong>11</strong> - attachment to a batch.</li></ul></td></tr><tr><td><p>objectId</p></td><td><p>int</p></td><td><p>The ID of the object</p></td></tr><tr><td><p>batchId</p></td><td><p>int</p></td><td><p>The ID of the batch</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>The ID of the project</p></td></tr></tbody></table>

## Returned value

| **Type**  | **Description**                                |
| --------- | ---------------------------------------------- |
| string\[] | The list of attachments to the selected object |
