Method TryGetChannels
- Namespace
- Skyline.DataMiner.DcpChatIntegrationHelper.Teams
- Assembly
- Skyline.DataMiner.DcpChatIntegrationHelper.dll
TryGetChannels(string)
Tries to fetch all channels from the given team from Microsoft Teams.
IEnumerable<IChannel> TryGetChannels(string teamId)
Parameters
teamId
stringThe id of the team where to create the channel. This id is returned when creating a team using TryCreateTeamAsync(string, string, CancellationToken) or when fetching them using TryGetTeamsAsync(CancellationToken).
Returns
- IEnumerable<IChannel>
All the teams. Might be empty but never null.
Remarks
The organizations Microsoft Teams tenant can be configured in the Admin App.
Exceptions
- TeamsChatIntegrationException
If anything went wrong.