We have been using the document understanding invoice stuff for some time now and it works great. With the addition of the AI Fabric trained models we now have high enough confidence on most invoices in order to start automatically processing some with higher confidence scores on each field. We use a dispatcher workflow to read each invoice with OCR, run through the Machine Learning extractor, then save the results into a Uipath queue. We also have another performer workflow which the AP folks use to validate any invocies in that queue each day.
I would like to modify the dispatcher workflow to check the confidence scores for each invoices as they are read and put through the machine learning extractor. I cannot find the correct namespaces available so that I can create variables for the ExtractionResults.ResultsDocument.Fields.
I have searched the available namespaces in Studio and in the documentation but cannot find any good solution.
I created a ResultDocument object using :
var resultsDocument = extractionResults.ResultsDocument
I was thinking maybe something like this would work:
resultsDocument.Fields.Where(t => t.FieldName == "Invoice Number").Values.Confidence
How can I get the values of the confidence for each field in our object?
Here is the Confidence property I am trying to access in the ExtractionResults object: