Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Post a message from Power Apps to a specific teams user (not channel)

(0) ShareShare
ReportReport
Posted on by 2

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!

Categories:
  • aaaleeex7 Profile Picture
    aaaleeex7 2 on at
    Re: Post a message from Power Apps to a specific teams user (not channel)

    Hi @v-qiaqi-msft 

    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.

  • Re: Post a message from Power Apps to a specific teams user (not 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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard