cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

MicrosoftTeams PostMessageToChannelV3 fails

Hello everyone.

 

I've recently started building PowerApps (I am new to coding in general) for my company, and I've run into a problem.

 

When I try to create a button that just posts a chat message to the IT support team (as a ping for help), the features fails.

 

Here's my code: 

 

 

 

 

MicrosoftTeams.PostMessageToChannelV3(
"group ID", 
"19:channelID@thread.skype", 
{
content: "I need help",
contentType: "text"
},
{
subject: "Need assistance with IT support"
}
)

 

 

 

 

And here's the error message:

error.jpg

 

 

I hope someone can shed some light on what's missing 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
alrez
Community Support
Community Support

Hi,

 

Looking through your issue, I am not quite certain what the issue is in your PowerApp, I think your call to Teams is getting messed up and its a bit more complicated then what you put in. However I would suggest using a call to Flow which would make this significantly easier. If you just pass the information from PowerApps over into a Flow and had the Flow create the message in the channel you are trying to do it would make the entire process a lot easier to create. Just have the button trigger a Flow and have the Flow make the post to the Teams channel.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
alrez
Community Support
Community Support

Hi,

 

Looking through your issue, I am not quite certain what the issue is in your PowerApp, I think your call to Teams is getting messed up and its a bit more complicated then what you put in. However I would suggest using a call to Flow which would make this significantly easier. If you just pass the information from PowerApps over into a Flow and had the Flow create the message in the channel you are trying to do it would make the entire process a lot easier to create. Just have the button trigger a Flow and have the Flow make the post to the Teams channel.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello Alex.

 

Thanks for your suggestion.

 

Gonna try it our and post the result.

Anonymous
Not applicable

Created a Flow as suggested by Alex and it just works. I did try the Power App solution again, but same error message happened. I really hope this will get a fix in the future as it would be great if you could implement the option into a more flexible solution.

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Users online (1,711)