Method TryCreateChannel
- Namespace
- Skyline.DataMiner.DcpChatIntegrationHelper.Teams
- Assembly
- Skyline.DataMiner.DcpChatIntegrationHelper.dll
TryCreateChannel(string, string, string)
Tries to create a channel in the given team in Microsoft Teams.
IChannel TryCreateChannel(string teamId, string channelName, string channelDescription)
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).
channelName
stringThe name of the channel to be created.
channelDescription
stringThe description of the channel to be created.
Returns
- IChannel
The created channel. Never null.
Remarks
The organizations Microsoft Teams tenant must be configured in the Admin App and the required permissions must be granted. Note that, if new features require more permissions than were granted before, you can easily refresh your configured tenant to update it's permissions in the Admin App.
Exceptions
- TeamsChatIntegrationException
If anything went wrong.