cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fs
Regular Visitor

Just want flow to run between hours of 8am and 5pm local time

This will be a sceduled flow that runs every 15 minutes

 

How would i accomplish this?

1 ACCEPTED SOLUTION

Accepted Solutions
MaanR
Frequent Visitor

Hi,

 

You can create a Scheduled Cloud Flow where you can set your 15 minute time interval. And in the settings you can use trigger condition that would only allow the flow to run between your required time. This is the challenging part. You can find the Trigger Condition in this post by Expiscornovus.

 

MaanR_2-1649276614575.png 

MaanR_3-1649276713954.png

View solution in original post

4 REPLIES 4
MaanR
Frequent Visitor

Hi,

 

You can create a Scheduled Cloud Flow where you can set your 15 minute time interval. And in the settings you can use trigger condition that would only allow the flow to run between your required time. This is the challenging part. You can find the Trigger Condition in this post by Expiscornovus.

 

MaanR_2-1649276614575.png 

MaanR_3-1649276713954.png

v-qiaqi-msft
Community Support
Community Support

Hi @fs,

Have you solved your problem?

Do you want to trigger the flow only from 8am and 5pm local time?

 

Write this expression within the condition of the trigger:

@and(

   GreaterOrequals(

     convertTimeZone(utcnow(), 'UTC', 'Central Standard Time', 'HH:mm'),//Here is your local time

     formatdatetime('8:00','HH:mm')

   ),

   lessOrEquals(

     convertTimeZone(utcnow(), 'UTC', 'Central Standard Time', 'HH:mm'),

     formatdatetime('17:00','HH:mm')

   )

)
Best Regards,
Qi
okeks
Super User
Super User

If you want to do that for more then just one flow (e.g. a whole environment) you can also use something like this.

 

okeks_0-1649746520779.png

 

Don't forget to create a second flow to turn on your flows again and include a condition so you don't turn off the "Turn it on again" flow 🙂

Ideally it would support daylight savings, but UTC is almost good enough thanks.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,663)