cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
baarsd
Helper I
Helper I

MS Teams connector PostMessageToConversation

Hi all,

does anyone have an idea how to use PostMessageToConversation from the MS Teams connector? Microsoft Teams - Connectors | Microsoft Docs suggests 3 required values, post as, post in. However when I try and use it in PowerApps, 

  1. It is not clear what the location (post in) field should be (especially if we're trying to target a user)
  2. When putting some dummy data in, the command doesn't seem to want to accept 3 variables, even though the docs page say all are required

baarsd_0-1616381560588.png

Has anyone used this successfully?

Thanks,
Dylan

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @baarsd ,

 

If you post a message to a user as flow bot, then this message would have no relevant with current user of Power App, the recipient could reply to the flow bot, however it would not know by whom this message is sent.

 

Below is the Flow:

208.png

Below is the Flow append on a button, with the parameter "Recipient" set to current user:

209.png

 

And below is what the recipient would receive:

207.png

 

One point to note, you will not be able to send private messages to individuals, no matter with Flow or Power Apps. As a user, Flow and Power Apps only support sending messages to a channel. You may consider use the "Post a message as the Flow bot to a user":

210.png

append the Flow OnSelect of a button, with the parameter recipient ask in Power Apps, the recipient would recieve a message from the flow bot and could see the sender of this message:

211.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

5 REPLIES 5
v-jefferni
Community Support
Community Support

Hi @baarsd ,

 

Could you please share more details about your scenario? Would you like to post message to users in Teams as Flow bot?

 

If so, the action "PostMessageToConversation" is actually available in Power Automate (MS Flow):

206.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi,

what I was wanting to do was post directly to Teams from PowerApps as the logged in user - posting via a flow as the chat bot would probably work as well for my use case. I'll investigate that!

Thanks

Hi again,

sorry it's not clear how I'd target a user using the flow? Can you help?

Thanks

v-jefferni
Community Support
Community Support

Hi @baarsd ,

 

If you post a message to a user as flow bot, then this message would have no relevant with current user of Power App, the recipient could reply to the flow bot, however it would not know by whom this message is sent.

 

Below is the Flow:

208.png

Below is the Flow append on a button, with the parameter "Recipient" set to current user:

209.png

 

And below is what the recipient would receive:

207.png

 

One point to note, you will not be able to send private messages to individuals, no matter with Flow or Power Apps. As a user, Flow and Power Apps only support sending messages to a channel. You may consider use the "Post a message as the Flow bot to a user":

210.png

append the Flow OnSelect of a button, with the parameter recipient ask in Power Apps, the recipient would recieve a message from the flow bot and could see the sender of this message:

211.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

FacundoGorla
Resolver II
Resolver II

isn''t there any way to do it with the Power App function? without doing anything with power automate?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,531)