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

# SaveAttachment

> Use SaveAttachment en la API de ABBYY FlexiCapture para agregar un archivo adjunto al objeto de documento, página o lote especificado en el Servidor de aplicaciones.

Agrega un archivo adjunto a un documento, página o lote.

<h2 id="definition">
  Definición
</h2>

```csharp theme={null}
void SaveAttachment(int sessionId, int type, int objectId, int batchId, int projectId, File file);
```

<h2 id="parameters">
  Parámetros
</h2>

| Nombre | Tipo | Descripción |
| - | - | - |
| `sessionId` | `int` | El ID de la conexión con el Servidor de aplicaciones. |
| `type` | `int` | Tipo de archivo adjunto. Use `9` para un documento, `10` para una página o `11` para un lote. |
| `objectId` | `int` | El ID del objeto. |
| `batchId` | `int` | El ID del lote. |
| `projectId` | `int` | El ID del proyecto. |
| `file` | [Archivo](/es/flexi-capture/api/structures/file) | El archivo adjunto. |

<h2 id="returned-value">
  Valor devuelto
</h2>

Ninguno.
