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 Microsoft teams po...
Power Apps
Answered

Get Microsoft teams posted and recieved new messages in Power apps screen

(0) ShareShare
ReportReport
Posted on by 10

Hello,

 

I am develping a screen inteface in power app where we can send and recieve messages in Micsrosoft Teams groups.. 

 

I am getting and able to post messages correctly but unable to refresh the gallery/chat control binded with 

Sort(MicrosoftTeams.GetMessagesFromChannel(GroupId,ChannelID).value,createdDateTime,Ascending)  control ..

 

 

how can we refresh the screen to get newly  recieved or posted messages. 

 

 

Regards... 

 

 

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @atif1455 

     

    Directly this is not doable. As a workaround to this, you can create a timer control to collect collection to store the data from Microsoft Teams as:

    Timer Configuration:
    Auto-Start: true
    Repeat: true
    Duration: 1000 (Refresh Every Second)
    OnTimerStart: ClearCollect(MyTeamsCollection, Sort(MicrosoftTeams.GetMessagesFromChannel(GroupId,ChannelID).value,createdDateTime,Ascending))
    Visible: false

    To show messages in the gallery control:
    Items: MyTeamsCollection

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • atif1455 Profile Picture
    10 on at

    Worked ...

     

    Thanks for your feedback

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @atif1455 ,

    Do you have any other problems?

    If you do not have any other problems, could you change your issue's status to "answered"?

     

    Thanks!😀

     

    Best regards,

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard