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

Notifications

Announcements

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,488 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard