Skip to main content

Notifications

Community site session details

Community site session details

Session Id : WAnZUiDgcppmWEaBELYH+D
Power Automate - Building Flows
Answered

Out-of-Office Auto Reply - for off hours and weekend

Like (0) ShareShare
ReportReport
Posted on 28 May 2019 13:10:01 by

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. 

 

Capture.PNGCapture2.PNG

  • cb23 Profile Picture
    326 on 31 Jul 2023 at 12:38:13
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Please ignore my message - I fixed it using a slightly different expression....

     

    Now I have a loop issue though 😂

  • cb23 Profile Picture
    326 on 31 Jul 2023 at 12:10:30
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Hey, I tried the expression you put here but it is throwing up an error for me: 'Unable to process template language expressions in action 'Initialize_variable_for_time' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.'

     

    Any ideas what I might be doing wrong?

  • rtatman Profile Picture
    8 on 15 Nov 2022 at 21:38:04
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Thank you! This helped me as well.

  • laurawoods-buch Profile Picture
    6 on 10 Dec 2021 at 15:42:15
    Re: Out-of-Office Auto Reply - for off hours and weekend

    @JC80 I know you posted this add on almost a year ago, but I wanted to say thank you because I have been trying to set this flow up for probably 10 total work hours and so far i think this solution will be successful! thanks so much!!

  • laurawoods-buch Profile Picture
    6 on 09 Dec 2021 at 20:05:30
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Hi! is this still the applicable solution? I'm having trouble getting mine to work, and I can't get all the same options. Thanks!

  • Mailmansgotmail Profile Picture
    15 on 12 Jul 2021 at 21:26:15
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Thanks your post helped me alot!

     

    Just to add on in case anyone else is having issues with the timezone or incorrect times.

     

    MSFT by default usually uses the UTC Coordinated Universal Time time zone.

     

    When using JC80 method, the time zone is always wrong.

     

    What resolved it was using the Covert Time Zone action as seen below then using that time to initialize the variables.

    Mailmansgotmail_0-1626125115533.png

    Mailmansgotmail_1-1626125138382.png

     

    formatDateTime(body('Convert_time_zone'), 'HH:mm')
    Mailmansgotmail_2-1626125150694.png

     

    Mailmansgotmail_3-1626125169218.png

     

  • VictorIvanidze Profile Picture
    12,207 on 13 Jan 2021 at 15:15:19
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Have a look at this: ScheduledOOF flow.

  • Aayan Profile Picture
    12 on 12 Jan 2021 at 09:49:52
    Re: Out-of-Office Auto Reply - for off hours and weekend

    Hi All,

    I would like to enable OOO after office hours ex: 6:00PM to 9AM everyday. I followed the above suggested steps and still not working. Can some one please help me to set up OOO with power automate. 

     

    Any assistance would be greatly appreciated

    Thanks

  • Inkar Profile Picture
    7 on 09 Dec 2020 at 05:56:03
    Re: Out-of-Office Auto Reply - for off hours and weekend

    oh, thanks a lot! works now! 

  • Community Power Platform Member Profile Picture
    on 08 Dec 2020 at 14:11:47
    Re: Out-of-Office Auto Reply - for off hours and weekend

    It would depend. Do you have a single domain you want to avoid or a few specific email addresses?

    In my particular use case I implemented 2 steps to avoid the loop you describe.

     

    1. Filtered the subject to reject anything that carries "Auto Reply" in the subject line

    2. Set an OR statement and typed the domains I wanted to answer only.

     

    JC80_0-1607436692949.png

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard