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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automatic Replies base...
Power Automate
Unanswered

Automatic Replies based on Outlook Event containing "PTO"

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I'm trying to set up a Flow that automatically sets an Out of Office message based on a calendar event with "PTO" in the name. This way, I can set my PTO in my calendar, and not worry about setting my Out of Office message to the appropriate times.

 

I've almost got it set right, as can be seen in these images: Screen Shot 2018-03-06 at 14.28.36.pngScreen Shot 2018-03-06 at 14.28.27.png

 

The only problem is that I haven't been able to figure out how to get the start and end time for the autoreply to be midnight of both of those days. Instead it seems to be giving me 4pm. How do i set this properly?

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @ DylJur,

     

    Do you want the action “set up automatic replies” run at the midnight of the day when the trigger “when an upcoming event is starting soon” is fired?

    Or do you want the “Start Time” field and the “End Time” field of the action “set up automatic replies” would be the midnight of the event’s start and end time?

     

    If you want the action “set up automatic replies” run at the midnight of the day when the trigger “when an upcoming event is starting soon” is fired, you could add a “Delay until” before the “set up automatic replies” action on your flow.

    You could create a flow as screenshots below:

    1.png2.png

    The expression of the Delay until as below:

    startOfDay(addDays(utcNow(),1))

     

    When an upcoming event is starting soon, such as the trigger would run at “2018-03-07T11:00:00Z”  the flow would run successfully as below to delay the run of  “set up automatic replies” action until the midnight “2018-03-08T00:00:00Z” :

     3.png

    If you want the “Start Time” field and the “End Time” field of the action “set up automatic replies” would be the midnight of the event’s start and end time, you could create a flow as below:

    4.png

     

    The expression of the "Start time" as below:

    startOfDay(addDays(triggerBody()?['Start'],1))

     

     

    The expression of the "End time" as below:

    startOfDay(addDays(triggerBody()?['End'],1))

     

    When an upcoming event is starting soon, the flow would run successfully as below:

     5.png

     

    Regards,
    Alice Zhang

  • Community Power Platform Member Profile Picture
    on at

    Thanks for the help, @v-yuazh-msft

     

    I've done that, and I would think that should work, but it still seems to be setting my time at 4PM. here's my setup, output, and result in my outlook settings.

     

    Screen Shot 2018-03-07 at 07.38.22.pngScreen Shot 2018-03-07 at 07.39.41.pngScreen Shot 2018-03-07 at 07.33.15.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard