Hi, what i want to do:
I have a Power App with an Gallery. The Gallery contains multiple Items, each with a title and a url.
Here i want to add some kind of share functionality: When i click an item i want a popup in which i can select one or multiple teams users (or office users). Then i want to click on a button to send them a message, containing the title and url of the selected gallery item.
Here i mostly struggle with the sending of a message. I read about creating a flow and using the flow bot but i cant get it configured correctly. I also read about the PostMessageToConversation method https://powerusers.microsoft.com/t5/Building-Power-Apps/PostMessageToConversation-Invalid-Number-of-Arguments/td-p/2293002 but i also cant get it worked with a single user (i dont want any channel!).
Can someone help me out here? Im pretty new to Power Apps and Power Automate.
Thank you!
thanks for the reply. But it seems like your method is only working with groups and channels. I want to share the message to a single person in ms teams, no group or channel.
HI @aaaleeex7,
MicrosoftTeams.PostMessageToConversation("User","Channel",ParseJSON(JSON({recipient:{groupId:"***",channelId:"***"},messageBody:"<p>testtest</p>"},JSONFormat.Compact)))
For each parameter in this formula, I stronglu suggest you check the following thread for reference:
Microsoft teams PostMessageToConversation - Power Platform Community