DEV Community

Cover image for Integrating Microsoft Teams Notifications (pt.4)
Adewale Megbabi
Adewale Megbabi

Posted on

Integrating Microsoft Teams Notifications (pt.4)

Hi,

I have successfully enhanced my M365 auto-responder with conditional logic in my previous posts. Today, I am further elevating my automation process by integrating Microsoft Teams notifications, ensuring real-time alerts for specific email triggers.

By the completion of this project, I shall be having Outlook mailbox, Power Automate, SharePoint, and Teams all configured into a product meant to enhance productivity in the business space.

Mission: Send Teams Notifications for Urgent Emails

✅ 1. Set Up a Microsoft Teams Workflows

  • Create a Teams Channel: If you haven't already, create a dedicated channel in Microsoft Teams for notifications.

Image showing a new channel, Automation created for this project

  • Add an Incoming Workflows:

Hover your mouse on the created channel, and on the three horizontal dots that appear at the far right of the channel's name, click for more options, and choose the workflows option

Workflows Image

Workflows

Workflows

In the second part of this project, remember that I created a flows in Power Automate called, "Email Automation", this comes up when I click the "view all flows" button.

Image showing in teams, the flows created in Power Automate

Click on the "Email Automate" flows and save. Also, note that the connection is successful.

Image showing flows connected and saved

Image showing workflows

✅ 2. Update the Configured Flows Power Automate
Enhance the existing flows to send a Teams notification when an urgent email is received:

  • Add a New Step: After sending the auto-reply for urgent emails, add a "Microsoft Teams" connector then, "Post message in a chat or channel" action .

Image of flows being updated

Image of connector and action

Flows being updated

  • Input the required parameters and save the updated flows configuration. Note that you can dynamically add the mailbox of the sender and the mail subject into the body of the message to be sent to the Teams channel.

Image showing updated flows being saved

✅ 3. Test and Validate
Send a test email with "urgent" in the subject line.

  • Confirm that:

The appropriate auto-reply is sent.

A new entry is logged in SharePoint.

A notification appears in the designated Teams channel.

Image showing auto-reply

Image showing SharePoint log

Image showing Teams channel message

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.