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

# GetDocument2

> Die GetDocument2-Methode der ABBYY FlexiCapture Web Services API gibt Informationen zu einem Dokument mit einem erweiterten Feldsatz zurück.

<div id="what-it-does">
  ## Was es macht
</div>

Ruft Informationen zu einem Dokument mit einem erweiterten Feldsatz ab.

<div id="definition">
  ## Definition
</div>

```csharp theme={null}
Document2 GetDocument2(int batchId, int documentId);
```

<div id="parameters">
  ## Parameter
</div>

| Name         | Typ   | Beschreibung                                                                               |
| ------------ | ----- | ------------------------------------------------------------------------------------------ |
| `batchId`    | `int` | Die ID des Batchs, das das Dokument enthält, zu dem Informationen abgerufen werden sollen. |
| `documentId` | `int` | Die ID des Dokuments, zu dem Informationen abgerufen werden sollen.                        |

<div id="returned-value">
  ## Rückgabewert
</div>

| Typ                                                     | Beschreibung                                               |
| ------------------------------------------------------- | ---------------------------------------------------------- |
| [Document2](/de/flexi-capture/api/structures/document2) | Informationen zum Dokument mit einem erweiterten Feldsatz. |
