cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AK9
Frequent Visitor

Microsoft Teams - Get All Channels for the current user

Hi,

 

In Power Apps I am trying pull all Microsoft Team Channels that the user has access to. Is there way to do this?

 

At the moment they only approach that seems feasible is get all the Teams that the user has access to, pull those in as a collection of tables (as there will are multiple channels per team) and then build a collection from this looking up the channels using MicrosoftTeams.GetChannelsForGroup().

 

Thanks,  

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

@AK9 

Do you want to get all channels?

Set the following codes to OnStart property of app

Clear(ColAllChannels);ForAll(MicrosoftTeams.GetAllTeams().value,Collect(ColAllChannels,MicrosoftTeams.GetChannelsForGroup(id).value))

Set Items property of Gallery: ColAllChannels

 

Sik

View solution in original post

2 REPLIES 2
v-siky-msft
Community Support
Community Support

@AK9 

Do you want to get all channels?

Set the following codes to OnStart property of app

Clear(ColAllChannels);ForAll(MicrosoftTeams.GetAllTeams().value,Collect(ColAllChannels,MicrosoftTeams.GetChannelsForGroup(id).value))

Set Items property of Gallery: ColAllChannels

 

Sik

View solution in original post

AK9
Frequent Visitor

Thanks @v-siky-msft .

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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