Import-StaffHubShift

Imports a list of shifts and adds them to members in the specified teams.

Note: This cmdlet is currently in Beta.

Syntax

Import-StaffHubShift
      [-Path] <String>
      [[-Encoding] <String>]

Description

Imports a list of shifts and adds them to members in the specified teams. Format of the file content - Title,Notes,StartDateTime,EndDateTime,ShiftType,MemberId,TeamId Eg: Title,Notes,2018-11-28T00:00:00Z,2018-11-28T02:00:00Z,Working,MBER_1234,TEAM_1234 Failure in adding one shift does not stop the other shifts from getting added.

Examples

-------------------------- Example 1 --------------------------

Import-StaffHubShift -Path "C:\shift.txt"

Imports the list of shifts from the file in the specified path.

Parameters

-Encoding

Encoding type of the file https://msdn.microsoft.com/en-us/library/system.text.encoding(v=vs.110).aspx - Encoding parameter value list

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

Location of the file.

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

Inputs

None

Outputs

System.Object

Notes

This cmdlet is currently in Beta.