Hello,
I am new to Power Automate and am using the desktop version, which is free. The ultimate goal of my flow is to take a PDF invoice and create an Excel file that maps all the invoice data. As of now, I've created the flow that takes a PDF as input, parses it into a text variable, and uses regex and some for each loops to map all the necessary data to the Excel file.
This flow has some downsides for me, which I'd like to discuss to see if there's an alternative approach.
- To change the PDF file—because I've completed the previous mapping and need to map a new PDF—I have to edit the flow and specify the new file I want to map in Excel. Ideally, after starting the flow, a window would pop up where I can drag and drop the PDF I want to map, or at least upload it by browsing within Windows. I searched online and it seems such an option might not be possible without using third-party software, which is also paid. Or am I mistaken and there is a way?
2) Another issue I have is that when I start the flow, it opens the Excel file and shows me the entire mapping process until it finishes. Is there a way to run it in the background without visually seeing the entire process? If not, I am forced to continue in this manner. Please share your thoughts;
2.1) A problem I encountered following the mentioned procedure is: if the file is already open, it returns an error. The solution I found online is to terminate the Excel process in advance, before opening it. However, this isn't ideal either, because if other Excel files are already open on the PC, it closes all the files. Is there a way to close only the file that will be used for mapping? If there isn't any solution for this, the only thing that comes to my mind is to start the flow in a virtual machine designed solely for this purpose and not interact with the daily work of the user who is using the PC for other things. Here too, I am open to any suggestions.
3) If the first point is not achievable, another solution I found online is to use the email client (Outlook). In my case, I am receiving the PDFs that I need to map in Excel by email. So, what I could do is read the emails from the specified sender and download the attachment, which will then be processed in the flow I've already created. Here immediately arises a question: I do not want to start the flow for each new email that arrives. I want the flow to remain listening, and when a new email arrives and matches the specified rules, to generate the Excel file I need.