> ## 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éthode FindById de l'objet Batches

Cette méthode permet de rechercher un lot à partir de son identifiant.

## Syntaxe

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

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

## Paramètres

**Id**

\[in] Cette variable contient l’identifiant du lot à rechercher.

**Result**

\[out, retval] Pointeur vers la variable [**IBatch**](https://docs.abbyy.com/fr/flexi-capture/sdk/api-reference/batch.md)\*\*\*\*\* qui reçoit le pointeur d’interface du lot. Si aucun lot ne correspond à l’identifiant spécifié, l’exception « The item was not found » est levée.

## Valeurs de retour

Cette méthode n'a pas de valeurs de retour spécifiques. Elle renvoie les [valeurs de retour standard des fonctions du SDK ABBYY FlexiCapture](https://docs.abbyy.com/fr/flexi-capture/sdk/api-reference/errorcodes.md).

## Voir aussi

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

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