cancel
Showing results for 
Search instead for 
Did you mean: 

Automated Running Late Notice With Flow and Flic Button

Hi Fellow Flow Fans!
 
A couple weeks ago I stumbled upon an article here on the Flow blog about using Flic buttons with Flow.  My head started spinning with ideas on how I could use this smart button.  I thought about a recent struggle I had. One of my meetings ran over and I was driving frantically to the other meeting across town when I hit some unexpected traffic.  An intense wave of panic came over me when I realized that my normally punctual self was going to be at least 5 - 10 minutes late for my next meeting.   Wouldn't it have been great if I was able to simply press my little green Flic button and it automatically notify the meeting attendees that I was going to be a few minutes late?
 
Getting Started
 
Before we start building the Flow we need to make sure our Flic button is set up.  The important thing to know about the Flic button is it has to be tied to your cell phone.  You have to download the Flic App on your IOS or Android device, create an account and run through the wizard to add your Flic button.  Once you have that configured, you have to tell it that you want to use Microsoft Flow for the action (Click, Double Click, or Hold).  Just click the Plus (+) button next to the action you want to trigger on and scroll down to the "Advanced" section on the next screen and select "Microsoft Flow".
 
 
 
Ok, now that the Flic button is set up we can move on to building our Flow.  First thing we need to do is create a Blank Flow and search for Flic in the Triggers.  We will use the "when a Flic is pressed" Trigger.
 
Find the Flic Trigger
 
If this is your first time using the Flic connector you will need to login to your Flic account to complete the set up.  In the settings you'll select the Flic button you want to tie this to and the event is should be tied to (single click, double click, hold, etc).  
Flic Trigger Configuration
 
 

Now that our Trigger is configured, we need to find the next upcoming event on your calendar and get the event information.  To do that, we'll use the "Get Calendar View of Events" Office 365 Outlook Action.  This Action allows us to return events from our calendar within a given date range.

It's safe to assume that since you'll only be triggering this Flow if you are running late that we can filter the events between the moment you press the button and within an hour of that.  Select your calendar from the Calendar Id dropdown list.  For Start Time we will add an Expression with UTCNow() to get the current date/time at button press.  For End Time we will add an expression to get the current date/time plus 1 hour.

That expression will look like this:
Get Calendar View of Events End Time Configuration
 
If we expand the properties of the Get Calendar View of Events Action, we have several more settings we can configure.  We will want to Order By Start asc and use a Top Count of 1.  This will ensure we get the most recent event and only return that event.
 
Get Calendar View of Events Settings
 
Now that we have the information for the meeting we are running late to, all that's left is to add a "Send Email" action so we can notify the attendees.  The "To" field will be the attendees property from our Get Events Action.  The Subject will use the "Subject" field from our Get Events Action and we will add "Running Late".  Then we will fill out the body with a sincere apology and will let them know you'll be there soon.  
 
Email Set Up

And we're done... just save and test it out!   This is one Flow that I hope I never have to use but it sure will come in handy if I do!
Meet Our Blog Authors
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Cambridge UK Power Platform User Group Leader, Technical evangelist and speaker. Always says yes to coffee! #LetsGetCoffee
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • I am building business processes and applications that are easy for users' to stick to, so they can follow and understand them. In overall I transform processes to be more reliable and effortless. I am a proud co-organizer of SharePoint Saturday Warsaw and active community member, blogger and international speaker.