cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Semirxbih
Level: Powered On

Delay Until next day at 6AM

Hi all,

 

I'm building out a flow and I'm stuck on one particular action that I can't seem to figure out how to make work. Below, is what my flow is currently doing and how I'm trying to tackle this issue.

 

1. Flow kicks off at 4:30PM (Central Time) (Completed)

2. Grab SharePoint items (Completed)

3. Sample email gets sent out (Completed)

4. Approval is needed to kick-off condition -> If approved, will kick off a delay until next day at 6AM (Central Time) (NEED HELP)

5. Final email gets sent out

 

Below, is a image of how I currently have my flow setup.

Screen Shot 2019-03-22 at 11.01.55 AM.png

3 REPLIES 3
Super User
Super User

Re: Delay Until next day at 6AM

Hi @Semirxbih 

 

Try setting the value of your Delay Until action to the following expression.

addHours(startOfDay(addDays(utcNow(),1)),6)
This should delay the Flow until 6am the day after the Approval takes place, though you may need to adjust it slightly to cater for the use of Central Time.
 

Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Semirxbih
Level: Powered On

Re: Delay Until next day at 6AM

Thanks so much for the reply! Would I just add the 'Central Time' tag within that expression somewhere?

Super User
Super User

Re: Delay Until next day at 6AM

@Semirxbih :

 

Here is an alternative approach.  I am converting first to Central time in my solution.  The reason I do so is that the start of the day in central time may not be the same as the start of the day in UTC time.  In other words, the date might be one day ahead in UTC time.  Therefore, adding one day may add an extra day to the calculation.

I convert back to UTC because I believe that the date time string passed to delay until must be in UTC.

 

 

DelayUntil1.jpgDelayUntil2.jpg

 

 

If this addresses your issue, please mark your post as Solved.

If you like my solution, please give it a Thumbs Up.

 

Scott

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 107 members 3,354 guests
Please welcome our newest community members: