Hey Im building a flow for an automated auto reply email - I have a domain condition(certain emails from specific domains) and then a time condition ( less then 9am and greater then 5pm )- below is an example of my flow. My problem is trying to implement days of week so saturday and sunday will auto reply regardless of hours while monday to friday will have the time received condition. Any help would be great.
Hi @Anonymous ,
Please follow the flow below and add the steps to the if condition in your flow.
Expression for the variable :
formatDateTime(utcNow(), 'dddd')
This returns the day of the week.
Hope this Helps.
Thanks,
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Anonymous ,
1. In the weekend if statement, you should change it to Or instead of And (Not related to the time for weekdays but this will not work for weekend condition)
2. You are directly comparing the "Recieved Time" field that is an unformatted time string with the hh:mm:ss type string so that is why it is throwing up an error. Follow the screenshot below and the steps to first format the time string and then compare.
Formula for variable: formatDateTime(triggerBody()?['DateTimeReceived'], 'HH:mm')
Hope this Helps.
Thanks,
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2