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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delaying emails from c...
Power Automate
Answered

Delaying emails from certificate generations.

(0) ShareShare
ReportReport
Posted on by 18

Good morning, 

 

Can someone help me please. 

 

I created a certificate flow in Power Automate and it worked perfectly. However, I now need to delay the time that the emails are sent out. 

 

The form in the flow is given to students in the morning, which they use to sign into the building, which triggers the flow of generating their certificate. I don't want their certificates to go out until after 15:30 UK time, after the lecture has completed. 

 

This is the flow I used for the certificate - https://techcommunity.microsoft.com/t5/educator-developer-blog/automate-event-certificates-in-10-easy-steps/ba-p/2742405

 

This is the flow I was recommended for delaying the emails to a certain time in the day - https://powerusers.microsoft.com/t5/Building-Flows/Delay-until-specific-time-every-day/m-p/928585#M130382

 

In the delay flow, the person who wrote the expression; added information for their timezone which is in China. I am located in the UK so I amended the expression slightly to the following - convertTimeZone(outputs('Get_response_details')?['body/submitDate'],'UTC','GMT Standard Time','HH:mm:ss')

 

I assume the above expression works, because I used it for a parallel branch which collates the information from the form, as well as using the expression, it puts everything into an excel spreadsheet for me. The spreadsheet shows the accurate date and time of the submission. 

 

Screenshot 2023-06-21 at 07.56.32.png

 

But for some reason, the emails just won't go out, it keeps saying 'expression failed' and going into the no section from the condition, which is then set to  "delay until" then the expression - formatDateTime(addHours(formatDateTime(addDays(utcNow(),1),'yyyy-MM-dd'),15),'yyyy-MM-ddTHH:mm:ssZ')

 

The flows just appear to be running for up to 24 hours and not completing. 

 

Screenshot 2023-06-21 at 08.06.07.png

 

The condition is set to go delay if the submission is not between 15:30 and 17:00. If it's easier, is there an expression or flow for just delaying the email until after 15:30? So when a delegate signs in at 08:00 in the morning, the email is delayed until 15:30. 

 

Thank you in advance. 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @BMP ,

     

    Expression in condition control:

    convertTimeZone(outputs('Get_response_details')?['body/submitDate'],'UTC','GMT Standard Time','HH:mm:ss')

     is great than or equal to

    15:30

     

    Expression in Delay until

    convertTimeZone(concat(formatDateTime(utcNow(),'yyyy-MM-dd'),' 15:30:00'),'GMT Standard Time','UTC')

     

    Best regards,

  • BMP Profile Picture
    18 on at

    Thank you @v-jefferni I will try this shortly and confirm the solution when I've tested it. 

  • VictorIvanidze Profile Picture
    13,083 on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard