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

# Método FindById del objeto Batches

Este método permite buscar un lote por su identificador.

## Sintaxis

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

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

## Parámetros

**Id**

\[in] Esta variable contiene el identificador del lote que se desea buscar.

**Result**

\[out, retval] Un puntero a la variable [**IBatch**](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/batch.md)\*\*\*\*\* que recibe el puntero de interfaz del lote. Si no se encuentra el lote con el identificador especificado, se genera la excepción "The item was not found".

## Valores de retorno

Este método no tiene valores de retorno específicos. Devuelve los [valores de retorno estándar de las funciones del SDK de ABBYY FlexiCapture](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/errorcodes.md).

## Consulte también

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

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