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

# GetAvailableTasksByStageId

> ABBYY FlexiCapture Web Services API の GetAvailableTasksByStageId メソッドを使用して、指定したステージで利用可能なセッション タスクをステージ ID で絞り込んで一覧表示します。

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

指定した処理ステージで利用可能な、現在のセッションのタスク一覧を取得します。

<Note>
  ステージで Webステーションが許可されている場合は、前処理済みのタスクのみが一覧に追加されます。
</Note>

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

```
Task [] GetAvailableTasksByStageId( int sessionId, int projectId, int[] stageIds, 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>sessionId</p></td><td><p>int</p></td><td><p>Application Server への接続の ID</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>タスク一覧を取得する対象プロジェクトの ID</p></td></tr><tr><td><p>stageIds</p></td><td><p>int\[]</p></td><td><p>タスクの取得元となる<a href="/ja/flexi-capture/api/methods/get-available-queues">キューの ID の一覧</a></p></td></tr><tr><td><p>onlyPrivateBatches</p></td><td><p>bool</p></td><td><p>利用可能なバッチの範囲を決定するフラグです。指定可能な値:</p><ul><li><strong>True</strong> - 現在のユーザーまたはユーザー グループに属するバッチのみ利用できます。</li><li><strong>False</strong> - すべてのバッチを利用できます。</li></ul></td></tr></tbody></table>

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

| **型**                                            | **説明**      |
| ------------------------------------------------ | ----------- |
| [Task](/ja/flexi-capture/api/structures/task)\[] | 利用可能なタスクの一覧 |
