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

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
DionGoile
Level: Powered On

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
DionGoile
Level: Powered On

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

mchien
Level: Powered On

Re: Delay until start-of-day tomorrow

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 341 members 6,482 guests
Please welcome our newest community members: