cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AK9
Level: Powered On

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
Microsoft v-siky-msft
Microsoft

Re: Microsoft Teams - Get All Channels for the current user

@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
Microsoft v-siky-msft
Microsoft

Re: Microsoft Teams - Get All Channels for the current user

@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
Level: Powered On

Re: Microsoft Teams - Get All Channels for the current user

Thanks @v-siky-msft .

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,748)