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

# FindById Method of the ClassificationTrainingBatches Object

This method allows you to find a batch in the collection by its identifier.

## Syntax

```vb Visual Basic .NET theme={null}
Function FindById(Id As Integer) As ClassificationTrainingBatch
```

```cpp C++ theme={null}
HRESULT FindById(
  int                            Id,
  IClassificationTrainingBatch** Result
);
```

## Parameters

**Id**

\[in] This variable contains the identifier of the batch to be found.

**Result**

\[out, retval] A pointer to the [**IClassificationTrainingBatch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingbatch.md)**\*** variable that receives the interface pointer for the training batch. Returns NULL, if the batch with the specified identifier is not found.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**ClassificationTrainingBatches**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/classificationtrainingbatches.md)
