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

# SendTask

> SendTask method in the ABBYY FlexiCapture web services API sends an entire task to a specified processing stage and attaches a comment to it.

## What it does

Sends the entire task to the specified processing stage.

## Definition

```
void SendTask( int sessionId, int taskId, int stageId, string comment );
```

## Parameters

| **Name**  | **Type** | **Description**                                       |
| --------- | -------- | ----------------------------------------------------- |
| sessionId | int      | The ID of the connection to the Application Server    |
| taskId    | int      | The ID of the task to be sent to the Exceptions stage |
| stageId   | int      | The ID of the stage to which the task must be sent    |
| comment   | string   | The text of the comment to the task.                  |

## Returned value

None.
