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.

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.

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.