Table of Contents

Method TryCreateTeamAsync

Namespace
Skyline.DataMiner.DcpChatIntegrationHelper.Teams
Assembly
Skyline.DataMiner.DcpChatIntegrationHelper.dll

TryCreateTeamAsync(string, string, CancellationToken)

Tries to create a team in Microsoft Teams.

Task<ITeam> TryCreateTeamAsync(string teamName, string teamOwnerEmail, CancellationToken cancellationToken = default)

Parameters

teamName string

The name of the team to be created.

teamOwnerEmail string

The email address of the owner of the team. Note this email address must be a part of the tenant.

cancellationToken CancellationToken

Optional.

Returns

Task<ITeam>

The created team. Never null.

Remarks

The organizations Microsoft Teams tenant can be configured in the Admin App.

Exceptions

TeamsChatIntegrationException

If anything went wrong.