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

# FindByName Method of the Batches Object

This method allows you to find a batch by its name.

## Syntax

```vb Visual Basic .NET theme={null}
Function FindByName(Name As String) As Batch
```

```cpp C++ theme={null}
HRESULT FindByName(
  BSTR     Name,
  IBatch** Result
);
```

## Parameters

**Name**

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

**Result**

\[out, retval] A pointer to the [**IBatch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md)**\*** variable that receives the interface pointer for the batch. Returns NULL, if the batch with the specified name 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

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

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