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

# GetBatchTypeTemplates

> Use GetBatchTypeTemplates in the ABBYY FlexiCapture API to return the IDs of Document Definitions attached to a specific batch type in a project.

## What it does

Returns the set of identifiers for Document Definitions attached to the batch type. If **NULL** is returned, it means either that the **Use all Document Definitions** option is enabled in batch type properties or that no Document Definition is selected.

## Definition

```
int[] GetBatchTypeTemplates( int projectId, int batchTypeId );
```

## Parameters

| **Name**    | **Type** | **Description**          |
| ----------- | -------- | ------------------------ |
| projectId   | int      | The ID of the project    |
| batchTypeId | int      | The ID of the batch type |

## Returned value

| **Type** | **Description**                                 |
| -------- | ----------------------------------------------- |
| int\[]   | Document Definitions attached to the batch type |
