We are implementing an RPA to handle file uploads for a vendor who doesn't have an API. The flow is essentially this:
- Our user clicks link that sends an HTTP request to Power Automate (First step in our cloud flow is "When an HTTP request is received")
- Power Automate connects to SharePoint and the File System to find and download the document based on the body of the original HTTP request
- The Power Automate Desktop Flow is initiated that visits our vendor's portal, navigates to the correct "Upload File" page, and uploads the file
This flow works as designed in "Attended" mode, however running in "Unattended" mode gives the error "There is a user session on the target machine. Cannot execute unattended desktop flow."
We would like this to run in the background for our users, so we'd like this flow to be "Unattended", but our user is always going to be logged in to Windows, thus there will always be a user session on the target machine.
Is our best option to set up a VM with the Power Automate and Desktop Flow, or is there a better/easier solution that I am overlooking?
Thanks