cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Delay until start-of-day tomorrow

Let's say I have a Loop that has a Send Email and a Delay in it. How do I send that email at the start of the day based on some arbitrary time?

 

For example, if i kick off the Flow at 2pm today, i expect to get an email at 12AM tomorrow (as in, an email in 10 hours). And I, again, expect another email at 12AM the following day. Given that the kickoff time can be dynamic, how do I get that "start-of-day" timestamp so i can use that for the Delay action? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate II
Advocate II

Re: Delay until start-of-day tomorrow

To clarify, you are wanting the following:

If triggered ( send email at 12.01am next day)

Then I think you could do it using the action.startTime here https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

Using a mixture of “@utcnow()” and “@startOfDay” or other time functions

All the functions in the link above can be used in flow but using the format (include apostrophes) “@funtion()” using the data operations compose action in many cases

E.g

If triggered (send email ( start trigger time = ( start of day + 24 hours + 1 minute))

Hope that helps you in the right direction,

Dion

View solution in original post

2 REPLIES 2
Highlighted
Advocate II
Advocate II

Re: Delay until start-of-day tomorrow

To clarify, you are wanting the following:

If triggered ( send email at 12.01am next day)

Then I think you could do it using the action.startTime here https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

Using a mixture of “@utcnow()” and “@startOfDay” or other time functions

All the functions in the link above can be used in flow but using the format (include apostrophes) “@funtion()” using the data operations compose action in many cases

E.g

If triggered (send email ( start trigger time = ( start of day + 24 hours + 1 minute))

Hope that helps you in the right direction,

Dion

View solution in original post

Highlighted
Advocate I
Advocate I

Re: Delay until start-of-day tomorrow

@DionGoile, thanks for the reply. I believe @startOfDay was what I was looking for. 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (6,146)