InvoiceWorkflowSample.zip, a sample flow that demonstrates an end-to-end invoice processing scenario: a user uploads an invoice, ABBYY Vantage extracts its fields, and the flow collects the extracted invoice numbers.
Before importing the sample, complete the steps in the connector guide to install the ABBYY Vantage custom connector and create a connection.
What the sample demonstrates
The flow is triggered manually and prompts for a file to upload. It then walks through the typical lifecycle of a Vantage transaction:Start a transaction
The Starts processing of the files in new transaction action sends the uploaded file to ABBYY Vantage, using a
skillId to specify which skill processes the document.Poll for completion
A Do until loop calls Gets transaction info every 10 seconds and checks the transaction status. The loop ends once the status is
Processed, Failed, or Canceled, or after 60 iterations (up to 1 hour).Handle the result
A Switch action branches on the final transaction status:
- Failed: The sample leaves this branch empty as a placeholder for your own error handling.
- Default (success): The flow filters the transaction’s result files for the
FieldsJsonfile type, then loops through each match.
Import the sample
- In Power Automate, select My flows on the left navigation pane.
- Select the down arrow next to Import, then select Import Package (Legacy).
-
Select Upload, choose
InvoiceWorkflowSample.zip, and select Open. -
Once the package details load, configure the related resources:
- For the Vantage 3 Test API resource, set Import Setup to Select during import and choose your ABBYY Vantage custom connector.
- For the ABBYY Vantage connection resource, set Import Setup to Select during import and choose your ABBYY Vantage connection.
- Select Save.
- Once all required resources are configured, select Import.
- Open the imported flow and turn it on.
The sample’s Starts processing of the files in new transaction action references a
skillId from the tenant it was exported from. Open the flow, edit that action, and select a skill from your own tenant before running it.