web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get a specific Teams m...
Power Apps
Suggested Answer

Get a specific Teams message using ID

(1) ShareShare
ReportReport
Posted on by 8
Howdy all,
 
My team is responsible for (among other things) fielding requests from several other internal groups via Teams. In an effort to gather data related to types of requests, volume of chats, etc. we're using Power Automate to create a SharePoint list item for every Teams message created in a few channels. We're then loading that SharePoint list into a Power App, where our team can collect certain data about the chat (like the nature of the request, actions we took, etc.).
 
This solution is currently working well, but I'm running into a problem within Power Apps. When we create the SharePoint list item, we save the message ID as well as the Teams and Channel IDs. I can use the "MicrosoftTeams.GetMessagesFromChannel()" call in Power Apps to get a list of messages, presumably the most recent X number of messages, and then use LookUp to filter out to the correct message using the chat ID. However, because this is a pretty opaque function I don't know how many messages are loaded. Any message from a previous date (or even sometimes from earlier in the same day) will fail to load message details.
 
In the Teams connector documentation, there's a Get Message Details function available, but I cannot for the life of me figure out how it works. The parameters don't make sense - for all other functions, the connector asks for the Team ID and Channel ID (like the GetMessagesFromChannel function I'm currently using). The GetMessageDetails function just asks for "messageID" and "threadType" and I can't find a way to get the IDs I have to fit. If anyone has been able to successfully use this function to load the details of a specific message, I would greatly appreciate your assistance!
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at
    Hi
     
    So yes, GetMessageDetails is essentially just away to grab the details.
     
    So imagine you had a flow, that triggered anytime someone says something. You would use the Trigger details, to fill in GetMessageDetails, so you can actually get the data.
     
    Its just like Forms. You trigger on Submissions, but you have to call GetResponseDetails action for it to give you all the data.
     
     
  • Philip.DeFord Profile Picture
    8 on at
    Hi
     
    So yes, GetMessageDetails is essentially just away to grab the details.
     
    So imagine you had a flow, that triggered anytime someone says something. You would use the Trigger details, to fill in GetMessageDetails, so you can actually get the data.
     
    Its just like Forms. You trigger on Submissions, but you have to call GetResponseDetails action for it to give you all the data.
    Just to make sure I understand, you're basically saying the "GetMessageDetails" action exists only to allow fetching the message details in Power Automate flows right? Because within Power Apps, I don't have a trigger that I can tie back to, unless the parameters allow me to do something tricky like concat the Team ID and Channel ID into a string or something.
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard