cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AK9
Regular 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
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
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
AK9
Regular Visitor

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

Thanks @v-siky-msft .

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (6,081)