Hi,
I need to create a Collection with the Groups and their Channels of Teams like this:
GroupDisplayName GroupId ChannelDisplayName
20-1 Expedientes id-dsjadoakdjhakdhkas 2020-Exp1 (1rt Channel of 20-1 Expedientes)
20-1 Expedientes id-dsjadoakdjhakdhkas 2020-Exp2 (2nd Channel of 20-1 Expedientes)
20-2 Expedientes id-dsjadoakdjhakdhkas 2022-Exp1 (1rt Channel of 20-2 Expedientes)
I tried to create a ForAll sentence:
ForAll(
Filter(MicrosoftTeams.GetAllTeams().value;"Expediente" in displayName);
Collect(TeamGroupCollect;GroupdisplayName:displayName;idGroup:id;ChannelDisplayName:ForAll(MicrosoftTeams.GetChannelsForGroup(id).value.displayName;displayName)})
)
But it creates a estructure like this:
GroupDisplayName GroupId ChannelDisplayName
20-1 Expedientes id-dsjadoakdjhakdhkas Table of Channels of Group 20-1 Expedientes
20-2 Expedientes id-dsjadoakdjhakdhkas Table of Channels of Group 20-2 Expedientes
20-3 Expedientes id-dsjadoakdjhakdhkas Table of Channels of Group 20-3 Expedientes


Please help with the sentence to create a single collection with the structure desired of a single collect with the GroupDisplayName
Thanxs!