- Release notes
- Overview
- Getting started
- Marketplace Vendors
- Marketplace Customers
- Publishing Guidelines
- Publishing Guidelines for Ready-to-go Automations
- Publishing Guidelines for Solution Accelerators
- Publishing Guidelines for Integration Service Connectors
- Publishing Guidelines for Process Mining app templates
- Security & IP Protection
- Other UiPath Listings
- Node-RED
- Setup
- Teams
- Microsoft Teams scope
- Create team
- Create team from group
- Get team
- Get teams
- Channels
- Create channel
- Delete channel
- Get channel
- Get channels
- Update channel
- Chats
- Get chat
- Get chats
- Get chat members
- Messages
- Get message
- Get messages
- Get message replies
- Reply to message
- Send message
- Events
- Create event
- Delete event
- Get event
- Get events
- Users
- Get user presence
- How it works
- Technical references
- Get started
- About
- Setup
- Technical references
- Quickstart - train and get model
- Azure Form Recognizer scope
- Activities
- Analyze form
- Analyze form async
- Get analyze form result
- Analyze receipt
- Analyze receipt async
- Get analyze receipt result
- Analyze layout
- Analyze layout async
- Get analyze layout result
- Train model
- Get models
- Get model keys
- Get model info
- Delete model
- Connectors
- How to create activities
- Build Your Integration

Marketplace user guide
Quickstart - train and get model
Overview
The purpose of this guide is to help you create a working sample that uses the following Azure Form Recognizer activities:
This working sample enables you to quickly verify the connection to your Azure Form Recognizer resource and get familiar with the activity's input/output datatypes.
After completing the steps in this guide, you'll have an automation sequence that does the following:
-
Establishes a connection to your Azure Form Recognizer resource (Azure Form Recognizer Scope).
-
Creates a new custom training model using the source form documents that you stored during Setup (Train Model).
-
Retrieves and outputs the status of the train model operation (Do While, Get Model Info, and Write Line).
-
Retrieves and outputs the keys extracted during the training model operation (Get Model Keys, For Each, and Write Line).
-
Deletes the new custom training model that you created (Delete Model).

Prerequisites
Before you begin:
- Complete the Azure Form Recognizer Setup guide.
Steps
Build your project
-
Add the Azure Form Recognizer Scope to your project.
-
In the Subscription Key and Endpoint properties, enter the Key1 and Endpoint values that you noted when creating your Azure Form Recognizer resource.
-
Add the Train Model activity inside the Azure Form Recognizer Scope activity.
-
Enter the Azure Storage Blob Uri of the blob container that contains the source form documents you're using for your model.
- For more information, see the Get shared access signature section in the Setup guide.
-
Create and enter a
Stringvariable in the Model Id property (e.g., modelId).
-
Add the Get Model Info.
-
In the Model Id property, enter the
Stringvariable you created for the Train Model activity (e.g., modelId). -
Create and enter a
KeysResult[]variable in the Keys poperty (e.g., keys). -
Add a For Each activity after the Get Model Info activity.
-
In the TypeArgument property, select String.
-
In the Values property, enter the
KeysResult[]variable with an array item identifier and theKeysproperty (e.g., keys(0).Keys). -
Inside the For Each activity, add a Write Line activity.
- In the Text property, enter "Key: "+item.
-
Add the Delete Model activity after the For Each activity.
-
In the Model Id property, enter the
Stringvariable you created for the Train Model activity (e.g., modelId). -
Run the sequence and verify the Output window includes the expected values.

You're done!
To learn more about the Azure Form Recognizer activities (including example property inputs/outputs), see the Activities page for a complete list of activities and links to the detail pages.