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

# GetBatches

> Listet mit der GetBatches-Methode der ABBYY FlexiCapture Web Services API alle Batches in einem Project auf, optional beschränkt auf den aktuellen Benutzer oder die aktuelle Gruppe.

<div id="what-it-does">
  ## Funktion
</div>

Ruft Informationen zu allen Batches in einem Projekt ab.

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

```
Batch [] GetBatches( int projectId, int sessionId, bool onlyPrivateBatches );
```

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

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Typ</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>Die ID des Projekts, das die Batches enthält, zu denen Informationen abgerufen werden sollen</p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>Die ID der Verbindung mit dem Application Server</p></td></tr><tr><td><p>onlyPrivateBatches</p></td><td><p>bool</p></td><td><p>Das Flag, das festlegt, welche Batches verfügbar sind. Mögliche Werte:</p><ul><li><strong>True</strong> - nur Batches, die dem aktuellen Benutzer oder der aktuellen Benutzergruppe gehören, sind verfügbar;</li><li><strong>False</strong> - alle Batches sind verfügbar</li></ul></td></tr></tbody></table>

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

<table width="100%"><tbody><tr><td><p><strong>Typ</strong></p></td><td><p><strong>Beschreibung</strong></p></td></tr><tr><td><p><a href="/de/flexi-capture/api/structures/batch-api-structures">Batch</a>\[]</p></td><td><p>Eine Sammlung von Datensätzen, die jeweils Informationen zu einem der Batches im Projekt enthalten.</p><p>Die zurückgegebene Sammlung enthält keine Batches, die in der Web Capture Station erstellt wurden.</p></td></tr></tbody></table>
