> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enum BatchTaskState

## Syntax

```crmscript theme={null}
BatchTaskState
```

## Fields

| Name                   | Description                                                                                                 |
| ---------------------- | ----------------------------------------------------------------------------------------------------------- |
| Unknown                | Unknown state of the task.                                                                                  |
| New                    | The task is new, but not assigned or run by any party.                                                      |
| Aquired                | The task has been aquired by an instance that wants to execute the task, but has not been started.          |
| Started                | The task is executing.                                                                                      |
| Succeeded              | Executing the task has completed successfully.                                                              |
| Failed                 | Executing the task has halted and the task failed.                                                          |
| SucceededManualCleanup | Executing the task has completed successfully, and related data will be cleaned up by the responsible code. |
| All                    | Special type.                                                                                               |


## Related topics

- [SuperOffice.WebApi.Data.BatchTaskState](/en/api/reference/webapi/SuperOffice.WebApi.Data.BatchTaskState.md)
- [Get Batch Task Infos By State](/en/api/reference/restful/rest/batch/get-batch-task-infos-by-state.md)
- [Get Batch Task Infos By Name And State](/en/api/reference/restful/agent/batch_agent/get-batch-task-infos-by-name-and-state.md)
- [NSBatchAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSBatchAgent.md)
- [SuperOffice.WebApi.Agents.BatchAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.BatchAgent.md)
