web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Just want flow to run ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 19

This will be a sceduled flow that runs every 15 minutes

 

How would i accomplish this?

Categories:
I have the same question (0)
  • Verified answer
    MaanR Profile Picture
    46 on at

    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@microsoft.com Profile Picture
    on at

    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')
    
     )
    
    )
  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    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 🙂

  • fs Profile Picture
    19 on at

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

  • mike7352 Profile Picture
    2 on at

    How can this be applied when the trigger of a flow is an email? Condition in which further actions will only be taken if the email is received (DateTimeReceive) within certain hours?

  • Kfleek Profile Picture
    4 on at

    You will need to get the current time, convert the current time to your time zone, then make a conditional control with a formatted time expression (you WILL need to use a 24 hour time format).

     

    The Expression for the conditional control is below:

     

    formatdatetime(body('Convert_time_zone'),'HH:mm')   > "is less than"   > '07:00'

    &

    formatdatetime(body('Convert_time_zone'),'HH:mm')   > "is greater than"  > '18:00'

     

    Kfleek_0-1689281812906.png

     

     

    Best regards,

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard