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

<div id="what-it-does">
  ## Qué hace
</div>

Agrega un archivo adjunto al objeto especificado.

<div id="definition">
  ## Definición
</div>

```
void SaveAttachment( int sessionId, int type, int objectId, int batchId, int projectId, File file );
```

<div id="parameters">
  ## Parámetros
</div>

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Tipo</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>El ID de la conexión al Servidor de aplicaciones</p></td></tr><tr><td><p>type</p></td><td><p>int</p></td><td><p>Tipo de archivo adjunto. Valores posibles:</p><ul><li><strong>9</strong> - archivo adjunto a un documento;</li><li><strong>10</strong> - archivo adjunto a una página;</li><li><strong>11</strong> - archivo adjunto a un lote.</li></ul></td></tr><tr><td><p>objectId</p></td><td><p>int</p></td><td><p>El ID del objeto</p></td></tr><tr><td><p>batchId</p></td><td><p>int</p></td><td><p>El ID del lote</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>El ID del proyecto</p></td></tr><tr><td><p>file</p></td><td><p><a href="/es/flexi-capture/api/structures/file">File</a></p></td><td><p>Archivo adjunto</p></td></tr></tbody></table>

<div id="returned-value">
  ## Valor devuelto
</div>

Ninguno.
