cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Advocate II
Advocate II

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
Advocate II
Advocate II

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

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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (82,366)