The Power Automate - Microsoft Teams: Post a Feed Notification seems like a relatively straight forward action that can provide a high level of value. Though it can provide a high level of value, it is not all that straight forward…
The Action requires the following properties:
The part which is most confusing is the Recipient field. Almost every time I have tried to use this action I receive the error message of "The response is not in a JSON format." umm ok?
The Recipient property says to specify a User ID, but even when using the Get User Profile 365 Action to retrieve the User ID, it still errors with that same error message. Same is the case when providing an Email of the recipient.
So how to solve this?
That’s it! Test your flow and everything should run without a hitch. Such an unspecific error message, and there seems to be no documentation anywhere that Microsoft has published showing that adding the Power Automate bot as a prerequisite for this Action to work.. Hope this helped
Top Line: Name of the Workflow (Workflow Owner DisplayName)
Middle Line: Notification Text property for the Action
Bottom Line: Team > Channel
Bonus: How to send a notification to an entire Team?
Use an action like the "List Group Members" one that will list everyone within the Office 365 Group that is created for the Team.
Then cycle through each value in an Apply to Each to send each group member the feed notification
Double Bonus: How to send a notification to all members of a private channel?
Private channels actually create their own SharePoint Team Site in the backend separate from the Team Site that is created for the Team. However, it does not create another Office 365 Group.
So we need to get all the users from the Members SharePoint Group of that private channels Team Site.
Example:
All done!
Thanks @LanD, really useful. Unfortunately I'm experiencing this issue with users who are using the "Follow up later" flow from chats / group chats. Would the solution here be for them to add the Power Apps app to Teams?
User | Count |
---|---|
88 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
132 | |
47 | |
42 | |
36 | |
28 |