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

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,702)