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

> ABBYY FlexiCapture Web Services API の GetBatches メソッドを使用して、Project 内のすべての Batches を一覧表示します。必要に応じて、現在のユーザーまたはグループに限定できます。

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

プロジェクト内のすべての Batches の情報を取得します。

<div id="definition">
  ## 定義
</div>

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

<div id="parameters">
  ## パラメーター
</div>

<table width="100%"><tbody><tr><td><p><strong>名前</strong></p></td><td><p><strong>型</strong></p></td><td><p><strong>説明</strong></p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>情報を取得する対象の Batches を含むプロジェクトの ID</p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>Application Server への接続の ID</p></td></tr><tr><td><p>onlyPrivateBatches</p></td><td><p>bool</p></td><td><p>利用可能な Batches の範囲を決定するフラグ。指定できる値は次のとおりです。</p><ul><li><strong>True</strong> - 現在のユーザーまたはユーザーグループに属する Batches のみ利用できます。</li><li><strong>False</strong> - すべての Batches を利用できます</li></ul></td></tr></tbody></table>

<div id="returned-value">
  ## 戻り値
</div>

<table width="100%"><tbody><tr><td><p><strong>型</strong></p></td><td><p><strong>説明</strong></p></td></tr><tr><td><p><a href="/ja/flexi-capture/api/structures/batch-api-structures">Batch</a>\[]</p></td><td><p>プロジェクト内の各 Batches に関する情報を含むレコードのセットです。</p><p>返されるセットには、Web Capture Station で作成された Batches は含まれません。</p></td></tr></tbody></table>
