Edit

Share via


Get-CsTeamsShiftsConnectionTeamMap

This cmdlet supports retrieving the list of team mappings.

Syntax

Default (Default)

Get-CsTeamsShiftsConnectionTeamMap
    -ConnectorInstanceId <String>
    -InputObject <IConfigApiBasedCmdletsIdentity>
    [<CommonParameters>]

Description

Workforce management (WFM) systems have locations / sites that are mapped to a Microsoft Teams team for synchronization of shifts data. This cmdlet shows the list of mapped teams inside the connection instance. Instance IDs can be found by running Get-CsTeamsShiftsConnectionInstance.

Examples

Example 1

PS C:\> Get-CsTeamsShiftsConnectionTeamMap -ConnectorInstanceId "WCI-d1addd70-2684-4723-b8f2-7fa2230648c9"
TeamId                               TeamName TimeZone            WfmTeamId WfmTeamName
------                               -------- --------            --------- -----------
12344689-758c-4598-9206-3e23416da8c2          America/Los_Angeles 1000107

Returns the list of team mappings in the instance with ID WCI-d1addd70-2684-4723-b8f2-7fa2230648c9.

In case of error, we can capture the error response as following:

  • Hold the cmdlet output in a variable: $result=<CMDLET>

  • To get the entire error message in Json: $result.ToJsonString()

  • To get the error object and object details: $result, $result.Detail

Parameters

-ConnectorInstanceId

Applicable: Microsoft Teams

The ID of the connection instance.

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

-InputObject

The Identity parameter

Parameter properties

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

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
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.