Currently I have an invoice reader process set up to read all invoices in a folder and then send some to Action Center to be user verified if they do not pass a certain confidence interval or some data is missing. Currently the bot pulls out the relevant invoice information as each task is completed and then waits for all actions in Action Center to be completed before continuing on with the process and inputting them into a database. On this database, the related invoice file is attached along with the data.
The issue is if the tasks are completed out of order or split up by users, then the proper invoice might not be attached to the correlating data due to the files just being attached based on the order in which they are in the folder. I want to be able to attach the proper file to the data that was approved in Action Center regardless of the order in which it was approved.
Is there a way to have the data in the datatable that was created from Action Center approved data look for the proper file before attaching it? I know I could have the bot read each file again and match this datatable with the user approved datatable, but this seems like it would add extra time when there could be a better solution.