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:1
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.2
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 10 minutes).3
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, and then loops through each match.
4
Extract field values
For each
FieldsJson result file, the flow calls Downloads the result files, parses the JSON with a Parse JSON action, and appends the value of the Invoice Number field to an array variable named invoiceNumberArray.Import the sample
1
Open My flows
In Power Automate, select My flows on the left navigation pane.
2
Start a legacy package import
Select the down arrow next to Import, and then select Import Package (Legacy).
3
Upload the sample package
Select Upload, choose
InvoiceWorkflowSample.zip, and select Open.4
Configure the related resources
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.
5
Save the configuration
Select Save.
6
Import the package
Once all required resources are configured, select Import.
7
Turn on the flow
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.