How to use Power Automate to send custom notifications to Microsoft Teams feed

Power Automate has gotten new Microsoft Teams actions again. This time it is the ability to send a message to someone with a custom text and link it to the message in either a team or a group chat. Let’s take a look at how to send a notification to the user:

You need to add a Post a feed notification action.

Then you will define is it the Flow bot or Power Virtual Agent sending the notification. Despite selecting the Power Virtual Agent it doesn’t let you choose a bot at this time and acts as a Flow bot. But I think that this one is so new that it hasn’t gotten all goodies yet.

You can choose to link to a team (channel) message or to a group chat message.

You can customize this action to run in your process – custom values can be used for recipient, text, team, channel and message.

In this test case I just used selected values.

Testing the flow – running successfully on the first run.

And we see the notification appear to our Teams Notification Feed. Clicking the notification takes us to the right team and channel, where the linked message flashes highlighted.

What about Group chat notification?

Instead of a team and channel you choose group chat what you want to use. You can use custom value.

This means that you can use these notifications in your processes in a very versatile way – and make life easier for users with these notifications that point directly to the right message.

Power Automate brings easy and efficient ways to engage people using Microsoft Teams into business processes.

7 thoughts on “How to use Power Automate to send custom notifications to Microsoft Teams feed

  1. I would just like to send notification to a user that the flow they ran has completed successfully. I can’t seem to figure this out. I don’t want to post to a channel. I can’t test-send anything to myself, so not sure if its going to work or not.

    Like

    1. You need to find out the user executing the flow ( for example https://powerusers.microsoft.com/t5/Building-Flows/Get-executing-user-in-Flow/td-p/135386 this might still work) and then send the notification to that person at the end of the flow.
      When you publish / share the flow pay also attention to option where you can state is it run using current user account and not yours.
      For testing this you could put up a trial or development tenant and create two accounts there to see that you get it right.
      Or ask a colleague to test the flow.

      Like

  2. Hi Team, i want to create a flow to check if a email message received in team chat that received a clearance message or not within 15 mints

    Like

    1. There are triggers for email messages you could use to get your flow started. Use also a Dataverse table or SharePoint list to take a note about the time when the action happened. Then on the chat part you could use an adaptive card in the flow to get their clearance. Once clearance is given, the time is updated to the row. And if they don’t react, then you have another flow that can trigger based on the new row and checks if the item has been reacted to or not.

      Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.