I want to automate my OOO using a flow, but only want to respond to certain people. Essentially, I only want to notify VIP parties of my outage and I do not want to set OOO when I am leaving, so a flow should detect my outage and if an email comes in from a VIP, only respond to them.
Base: Smart Out of Office with Power Automate (updated May 2021) (linkedin.com)
I started with this flow idea, and thought I could match a sender to a SharePoint list in the decision tree. That seems to not work. I feel like I am overthinking this.
My tree:
Instead of using the automatic replies action, set up the auto-response as a "reply to email" action and put it inside a condition like a predefined list of senders contains this sender's email. You can also add some time conditions like int(convertFromUtc(utcNow(),'Your Time Zone','HH')) is less than 8 and greater than 17 or whatever your working hours are.
You could be clever and have another flow with a geofence trigger that updates a SP list item to In/Out when you cross the geofence boundary (There's a direction property of the geofence trigger you don't see as dynamic content) then use that SP list item value in your condition. That way you'll automatically switch your replies on and off when you leave and arrive in the office, or leave and arrive at home or whatever
To use "reply to email" then I should use the trigger of "when a new email arrives" it seems. So this flow would trigger on every email and then check sender and the calendar.
That seems more complicated than checking the calendar first, and then auto reply based on sender.
User | Count |
---|---|
88 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
38 | |
24 | |
21 |