UiPath Documentation
marketplace
latest
false
Marketplace user guide

Analyze form

Analyze documents to extract key-value pairs and table data using the Azure Form Recognizer Analyze Form API and a custom training model.

The Analyze Form activity uses the Form Recognizer Analyze Form API to extract key-value pairs and table data from a specified document (File Path or File URL) using a specified training model (Model Id).

After completing the analyze form operation, the activity outputs the results in an AnalyzeOperationResult object (Response Object) and a Page[] object (Pages). Both of these outputs can be used as input variables in subsequent activities (e.g., conditional logic).

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 steps.
  2. Add the Azure Form Recognizer Scope activity to your project.
  3. Add the Analyze Form activity inside the Azure Form Recognizer Scope activity.
  4. Enter values for the Input properties.
  5. Create and enter the AnalyzeOperationResult and Page[] variables for the Output properties.
  6. Run the activity.
    • Your input properties are sent to the Analyze Form API.

    • The API returns the AnalyzeFormResponse and FormPage[] values to your output property variables.

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.

AttributesDetails
TypeString
RequiredYes
Default valueAnalyze Form
Allowed valuesEnter a String or String variable.
NotesN/A
Timeout​

Specifies the amount of time to wait (in milliseconds) for the analyze receipt operation to complete before an error is thrown.

AttributesDetails
TypeInt32
RequiredYes
Default value30000ms ((30 seconds) not shown)
Allowed valuesEnter a Int32 or Int32 variable.
NotesN/A

Input​

File Path​

The local path to the form document that you want to analyze.

AttributesDetails
TypeString
RequiredYes (if File URL is empty)
Default valueEmpty
Allowed valuesEnter a String or String variable.
NotesSupported form document formats:.json,.pdf,.jpg,.png, and.tiff (all other format types are ignored).
File URL​

The URL to the form document that you want to analyze.

AttributesDetails
TypeString
RequiredYes (if File Path is empty)
Default valueEmpty
Allowed valuesEnter a String or String variable.
NotesSupported form document formats:.json,.pdf,.jpg,.png, and.tiff (all other format types are ignored).
Model Id​

The identifier of the training model that you want to use to analyze the form.

AttributesDetails
TypeString
RequiredYes
Default valueEmpty
Allowed valuesEnter a String or String variable.
NotesTo get the Model Id value, add an activity or run an external process that outputs the model identifier (e.g., Train Model, Get Models).

Options​

IncludeTextDetails​

If selected, the result includes text lines and element references.

AttributesDetails
TypeCheckbox
RequiredNo
Default valueNot Selected
Allowed valuesSelected or Not Selected
NotesN/A

Misc​

Private​

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

AttributesDetails
TypeCheckbox
RequiredNo
Default valueNot Selected
Allowed valuesSelected or Not Selected
NotesN/A

Output​

Response Object​

The operation response as a deserialized object.

AttributesDetails
TypeAnalyzeOperationResult
RequiredNo (required to use the output data in subsequent activities)
Default valueEmpty
Allowed valuesEnter a AnalyzeOperationResult variable
NotesTo get the JSON string representation, use the ToString method. If the model can't find a field, a null value is returned.
Pages​

The results of the form analysis, including the key-value pairs and table information extracted from the page.

AttributesDetails
TypePage[]
RequiredNo (required to use the output data in subsequent activities)
Default valueEmpty
Allowed valuesEnter a Page[] variable
NotesEach Page object includes KeyValuePairs and Tables properties.
  • How it works​
  • Properties​
  • Common​
  • Input​
  • Options​
  • Misc​
  • Output​

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated