# Get models

> The **Get Models** activity uses the Form Recognizer [Get Models](https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/GetCustomModels) API to retrieve the training models that have been created for the Azure resource specified in the **Azure Form Recognizer Scope** activity.

The **Get Models** activity uses the Form Recognizer [Get Models](https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/GetCustomModels) API to retrieve the training models that have been created for the Azure resource specified in the **Azure Form Recognizer Scope** activity.

After completing the get models operation, the activity outputs the details of each retrieved model in a `ModelInfo[]` (**Model Info Array**) object that you can use as an input variable in subsequent activities (e.g., `ModelInfo(0).ModelId.ToString` in the [Get Model Keys](https://docs.uipath.com/marketplace/automation-cloud/latest/user-guide/microsoft-azure-form-recognizer-get-model-keys#get-model-keys) activity).

## How it works

The following steps and message sequence diagram is an example of how the activity works from design time (that is, the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/marketplace/automation-cloud/latest/user-guide/microsoft-azure-form-recognizer-setup#setup) steps.
2. Add the [Azure Form Recognizer Scope](https://docs.uipath.com/marketplace/automation-cloud/latest/user-guide/microsoft-azure-form-recognizer-scope#azure-form-recognizer-scope) activity to your project.
3. Add the **Get Models** activity inside the **Azure Form Recognizer Scope** activity.
4. Create and enter a `ModelInfo[]` variable for the [Output](https://docs.uipath.com/marketplace/automation-cloud/latest/user-guide/microsoft-azure-form-recognizer-get-models#output) property.
5. Run the activity.
   * Your request is sent to the [Get Models](https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/GetCustomModels) API.
   * The API returns the `ModelInfo[]` value to your output property variable.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/marketplace/marketplace-docs-image-33091-c2251a95-18f73db7.webp)

## Properties

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

### Common

#### DisplayName

The display name of the activity.

| Attributes | Details |
| --- | --- |
| **Type** | `String` |
| **Required** | Yes |
| **Default value** | *Get Models* |
| **Allowed values** | Enter a `String` or `String` variable. |
| **Notes** | N/A |

### Misc

#### Private

If selected, the values of variables and arguments are no longer logged at Verbose level.

| Attributes | Details |
| --- | --- |
| **Type** | Checkbox |
| **Required** | No |
| **Default value** | Not Selected |
| **Allowed values** | Selected or Not Selected |
| **Notes** | N/A |

### Output

#### Model Info Array

An array of the models and information found in the Azure resource.

| Attributes | Details |
| --- | --- |
| **Type** | `ModelInfo[]` |
| **Required** | No (required to use the output data in subsequent activities) |
| **Default value** | Empty |
| **Allowed values** | Enter a `ModelInfo[]` variable |
| **Notes** | The variable you create for this property can be used as an input variable in subsequent activities (e.g., `ModelInfo(0).ModelId.ToString` in the **Get Model Keys** activity).  Each `ModelInfo` object includes multiple [properties](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.formrecognizer.models.modelresult?view=azure-dotnet-preview#properties) that you can use in other activities. |
