How to schedule in Power Automate Desktop WITHOUT Power Automate Cloud or Premium license)

preview_player
Показать описание

Power Automate Desktop - Scheduler Hack - How to "Hack" PAD to Schedule workflows using Javascript.

Special thanks to Gozz Gozzilla for highlighting the bug in my code for Run Javascript 2 (within the loop). Please see below for the correct codes.

How to schedule in Power Automate Desktop WITHOUT Power Automate Cloud or Premium license)

Please help me to help other people just like you by subscribing to my channel and like the video if you think it's helpful.

Run Javascript 1
var StartDateTime = new Date(%UserInput%).getTime();
var CurrentDateTime = new Date().getTime();
var Value_StartDateTime = new Number(StartDateTime);
var Value_CurrentDateTime = new Number (CurrentDateTime);
var WaitTime = (Value_StartDateTime - Value_CurrentDateTime)/1000;

Run Javascript 2 (within the loop)
var StartDateTime = new Date(%UserInput%).getTime();
var CurrentDateTime = new Date().getTime();
var Value_StartDateTime = new Number(StartDateTime);
var Value_CurrentDateTime = new Number (CurrentDateTime);
var WaitTime = ((Value_StartDateTime+%LoopIndex%*(24*60*60*1000)) - Value_CurrentDateTime)/1000;
Рекомендации по теме
Комментарии
Автор

There are two hacks available to schedule workflows without any license:-

If they help you, please give the video a like and subscribe to the channel. ;)

PowerAutomator
Автор

Came here from your reply on my comment on the Power Automate Desktop March 22 Update Blog. All looks good. Liked and subscribed.
I little feedback for you videos, try to have some sort of 1-2 minute "outro" segment because YouTube buts on screen there recommendations for the next video at the end and it obscures the view of what you were trying to show 👍

GarethDoherty
Автор

Thanks so much . Very helpful video .

ndacadet
Автор

WaitTime is not a variable produced for the first javascript but the script is exactly what you have in the description. I see others with the same issue but no fix was documented in the comments

arwasko
Автор

hi - this tool works perfectly and i sent you a cup of coffee :-)

kelvinmichael
Автор

Thank you for the video. But I have a question; your format of DateTime doesn't run on my computer. Is it really 'Jan 5 17:50 2022'. If I use this format my Flow runs into a fault. Thank you for any answer

abenteuerland
Автор

Good job, thanks! Loop and flow can run at background? Otherwise, pc should be kept running and switched on for whole period of the loop and flow?

senozk
Автор

This works perfectly fine for me! I tested it to run every minute by changing 24*60*60*1000 to 1*1*60*1000. it works even on lock screen.

but @powerAutomator just wondering if we could run 2nd flow with different loop timing? for eg. 1st one runs Daily, 2nd one runs Weekly. THANKS!

jaredyong
Автор

Hello, this is great tip for scheduling. But once I schedule my flow to run daily, and turn off my laptop, still this works?

ksunilksk
Автор

This is working great, thanks!

Is it possible to run for 5 days, pause for 2 days and then run again for 5? So basically run on weekdays and pause on weekends?

alasdairnott
Автор

Any idea why I'm getting the following error message? "Parameter 'Text to convert': Variable 'WaitTime' doesn't exist". Perhaps the system datetime format differs on my PC?

bsteve
Автор

@PowerAutomator

Hello, thanks for the guide. I recreated it exactly as you described. Unfortunately, it does not jump to the loop after the waiting time has expired. What could be the problem? How can I solve it? I would appreciate your help.

SerdarYazicioglu
Автор

First Thanks for this VDO, it help me a lot. However I got problem after the first loop passed then the second loop always got error said " Timeout values can only be in the range 0 to 2147483 seconds" and the variable WaitTime show -282.826....Could you pls suggest ?

gozzgozzilla
Автор

Hi, can we schedule a flow for specific days not daily?

RajisRavi
Автор

Variable produced Wait time not show, how to get it, please advise.

asmuruanand
Автор

Sorry but it seems it's not scheduled, it's delayed... you can also create a subflow using the "wait" snippets already built in the application, so no need for an external script for waiting time...

luisfmts
Автор

How can we apply the same method to run every 1 hour?

renehasp
Автор

How can i make this script run every three minutes by the way ure a genius

jamesbassey
Автор


Special thanks to @Gozz Gozzilla for pointing out a bug in my Javascript 2 (within the loop). Please see corrected code in description.

This channel only have 50 subscribers. If this video helps you, please remember to subscribe so I can help more people. I need to get 1000 subscribers :). Thank you!

PowerAutomator
Автор

Does this still work in 2023,

I tried running the code and got the following error

Can't convert text '' into a valid number (text provided is either in a non-recognizable format or contains too many characters).
Can't convert text '' into a valid number (text provided is either in a non-recognizable format or contains too many characters).
at context)
at statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)


can any one help?

reanalytics