cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Frequent Visitor

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

Thanks @v-siky-msft .

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,925)