Edit

Share via


New-CsTeamsShiftsConnectionBatchTeamMap

This cmdlet submits an operation connecting multiple Microsoft Teams teams and Workforce management (WFM) teams.

Syntax

Default (Default)

New-CsTeamsShiftsConnectionBatchTeamMap
    -ConnectorInstanceId <string>
    -TeamMapping <TeamMap[]>
    [<CommonParameters>]

Description

This cmdlet connects multiple Microsoft Teams teams and WFM teams to allow for synchronization of shifts related data. It initiates an asynchronous job to map the WFM teams to the Microsoft Teams teams. You can check the operation status by running Get-CsTeamsShiftsConnectionOperation.

Examples

Example 1

PS C:\> $map1 = @{
teamId = 'eddc3b94-21d5-4ef0-a76a-2e4d6f4a50be'
wfmTeamId = 1000553
timeZone = "America/Los_Angeles"
}

$map2 = @{
teamId = '1d8f6288-0459-4c53-8e98-9de7b781844a'
wfmTeamId = 1000555
timeZone = "America/Los_Angeles"
}

New-CsTeamsShiftsConnectionBatchTeamMap -ConnectorInstanceId WCI-2afeb8ec-a0f6-4580-8f1e-85fd4a343e01 -TeamMapping @($map1, $map2)
CreatedDateTime      LastActionDateTime   OperationId                          Status
---------------      ------------------   -----------                          ------
12/6/2021 7:28:51 PM 12/6/2021 7:28:51 PM c79131b7-9ecb-484b-a8df-2639c7c1e5f0 NotStarted

Sends 2 team mappings: one maps the Teams team with ID eddc3b94-21d5-4ef0-a76a-2e4d6f4a50be and WFM team with ID 1000553 and the other maps the Teams team with ID 1d8f6288-0459-4c53-8e98-9de7b781844a and WFM team with ID 1000555 in the instance with ID WCI-2afeb8ec-a0f6-4580-8f1e-85fd4a343e01.

Parameters

-ConnectorInstanceId

Applicable: Microsoft Teams

The connection instance ID used to map teams.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TeamMapping

Applicable: Microsoft Teams

The Teams mapping object list.

Parameter properties

Type:

TeamMap[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes

Please check the example section for the format of TeamMap.