Skip to content

Latest commit

 

History

History
68 lines (34 loc) · 3.62 KB

Send Reminders to Teams.md

File metadata and controls

68 lines (34 loc) · 3.62 KB

image

Send Reminders to Teams

Goal of this flow: My team mates have this practice of making our own Flat White coffees in the morning because that can save some money in the long run. Also re-usable coffee mug. So yeah why not? We all chipped in for and have everyone’s round to bring a bag of coffee beans and in the morning we grind it and make coffee in this semi professional espresso maker.

Now the problem was because everyone is so busy, no one wants to keep a track of whos round was the last one and even though we tried many different manual methods, either the next person would not bring the beans at the right time or can’t remember whos round is next.

My Solution

My solution is a very simple Power Automate flow that takes the names from a SharePoint List, make sure user is in the Team and if not add the user and post a message in the Team I’ve specified in the flow steps and once everyone’s round is completed, it sends a mail to everyone saying the round has completed which will restart the process again. This has the opportunity to add new mates to the list and the flow will make sure they are in the Team and send them the message once the current mates’ round is finished.

Creating the List

This is where I maintain my mates who are in the Make your own Coffee clique and add any new people

image

What did I create?

  • For this I used a service account called CoffeeBot - You can similaly use the Flow Bot without creating an additional account
  • Team called TEAM IT and Channel called CoffeeChannel with CoffeeBot as an Owner in that Team
  • A proper M365 License for the CoffeeBot user

My Steps

The very 1st trigger will be a manual one as it is waiting for the mail to arrive to trigger the flow

image

It get the items from my SPO list

image

Sorting process as I was not 100% accurate with the ODATA Filter in the previous step

image

For each value derived from the previous step, get the @mention, send the email wait for the given number of minutes/ hours/ days and do until the the current value is not equal the next in line

image

Once the do until breaks at the end of the list, send a mail to everyone in the list with the specific Subject from the specific account and terminate the flow for that round

image

The Teams Message that spits out according to the provided delay

The Result

My delay was 1 minute. That is to test the flow, but for this use case I would take the average time to finish a 1kg of coffee beans.

The specific person will get the @mention so they will be notified by Teams.

image

Coffee round completion email As the trigger to start the flow is waiting in arrival of this email, it will start the flow of next round.

image