Reputation: 41
I have created a desktop flow using Power Automate Desktop. But I cant schedule or make it run automatically. Is there any way to do so?
I don't wish using cloud flows and connecting Desktop flow using Gateways. I need to automatically run Desktop flows within my desktop machine itself. Any ways to achieve this?
Upvotes: 4
Views: 39390
Reputation: 175
I use autoit to start Power Automate and run the workflow. Something like that:
Run("C:\Program Files (x86)\Power Automate Desktop\PAD.Console.Host.exe")
WinWaitActive("Power Automate", "", 10)
WinMove("Power Automate","",0,0)
WinSetState("Power Automate","", @SW_MAXIMIZE)
MouseClick("left",571,253,1)
Exit
Depending on screen resolution change MouseClick parameters to press the button. On the animation below, with mouse I only pressed autoit script, other actions are made by it:
Upvotes: 2
Reputation: 41
Directly starting a PA desktop flow using windows scheduler is not possible. However, workaround suggested by Lars Hadidi is doable.
First of all Create a Loop Index and make all your PA desktop flow actions to reside in it and Create an action 'Wait for Process' to wait for a harmless program like cmd.exe or ping.exe in you PAD flow.
Now, follow the below steps
Make sure that you are not invoking the scheduled exe as part of any other work.
Upvotes: 4
Reputation: 568
For Power Automate Desktop, make sure the computer is running at the scheduled time the Power Automate Desktop Application. Given so, this can serve as a work-around:
Wait For Process
condition at the beginning of the flow. Set process name to PING
You might want to define Power Automate Desktop as a Windows Service and run it in the background.
Upvotes: 1
Reputation: 9
Not possible with out-of-the-box Desktop features but you could manually start your flow and let it run. A working example here: Power Automate Gallery
Upvotes: 0
Reputation: 486
Currently this is not supported. You can go and vote for this idea here: Schedule Power Automate Desktop from within Windows 10
Upvotes: 0