Get-StaffHubShifts

Note: This cmdlet is currently in Beta. Get details of shifts for all team members or for a specified team member for the given time window.

Syntax

Get-StaffHubShifts
   [-TeamId] <String>
   [-StartDateTime] <DateTime>
   [-EndDateTime] <DateTime>
   [[-MemberId] <String>]
   [<CommonParameters>]

Description

Get details of the shifts for all team members or for a specified team member

Examples

Example 1

$startTime = Get-Date -Date "2018-01-01T00:10:00"
$endTime = Get-Date -Date "2018-01-01T04:10:00"
Get-StaffHubShifts -TeamId "TEAM_1234" -StartDateTime $startTime -EndDateTime $endTime -MemberId MBER_1234

Get the details of the shifts for MBER_1234 in the team TEAM_1234 between start time and end time

Example 2

$startTime = Get-Date -Date "2018-01-01T00:10:00"
$endTime = Get-Date -Date "2018-01-01T04:10:00"
Get-StaffHubShifts -TeamId "TEAM_1234" -StartDateTime $startTime -EndDateTime $endTime

Get the details of the shifts for all the members in team TEAM_1234 between start time and end time

Parameters

-EndDateTime

EndDateTime for the time window between which shifts are to be fetched

Type:DateTime
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-MemberId

MemberId of the member for which the shifts are to be fetched

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-StartDateTime

StartDateTime for the time window between which shifts are to be fetched

Type:DateTime
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub
-TeamId

TeamId of the team for which the shifts are to be fetched

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft StaffHub

Inputs

None

Outputs

System.Object