marketplace
latest
false
Marketplace User Guide
Last updated Sep 5, 2024

Get Analyze Receipt Result

The Get Analyze Receipt Result activity uses the Form Recognizer Get Analyze Receipt Result API to asynchronously retrieve the results of previously run receipt analysis operation (Result Location).

After completing the operation, the activity outputs the operation status in a String (Operation Status), and the results in an AnalyzeOperationResult object (Response Object) and a Receipt[] object (Receipts). All 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 (i.e., 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 an activity or run an external process that outputs the result location (e.g., Analyze Receipt Async).
  4. Add the Get Analyze Receipt Result activity inside the Azure Form Recognizer Scope activity.
  5. Enter values for the Input properties.
  6. Create and enter String, AnalyzeOperationResult, and Page[] variables for the Output properties.
  7. Run the activity.

    • Your input properties are sent to the Get Analyze Receipt Result API.
    • The API returns the status String, AnalyzeFormResponse, and Receipt[] 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.

Attributes

Details

Type

String

Required

Yes

Default value

Get Analyze Receipt Results

Allowed values

Enter a String or String variable.

Notes

N/A

Input

Result Location

The URL containing the Result ID used to track the progress and obtain the result of the operation.

Attributes

Details

Type

String

Required

No (required to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a String variable

Notes

To get the Result Location, add an activity or run an external process that outputs the result location (e.g., Analyze Receipt Async).

For more information, see Operation-Location in the Analyze Receipt API documentation.

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

Operation Status

The status of the operation.

Attributes

Details

Type

String

Required

No (required to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a String variable

Notes

There are four possible statuses:

  • notStarted: The analysis operation has not started.
  • running: The analysis operation is in progress.
  • failed: The analysis operation failed.
  • succeeded: The analysis operation succeeded.

If the status is succeeded, the response JSON includes the form understanding and text recognition results.

Response Object

The operation response as a deserialized object.

Attributes

Details

Type

AnalyzeOperationResult

Required

No (required to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a AnalyzeOperationResult variable

Notes

To get the JSON string representation, use the ToString method.

If the model can't find a field, a null value is returned.

For more information about the object, including the data fields, see the response section of the Get Analyze Receipt Result API documentation.

Receipts

The understanding results of the receipt analysis, including the key/value information for the most relevant parts of the receipt.

Attributes

Details

Type

Receipt[]

Required

No (required to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a Receipt variable

Notes

Each Receipt object includes the following properties that you can use in other activities:
  • Merchant Name
  • Merchant Phone Number
  • Merchant Address
  • Transaction Date
  • Transaction Time
  • Total
  • Subtotal
  • Tax
  • How It Works
  • Properties
  • Common
  • Input
  • Misc
  • Output

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.