Skip to content

Get-HaloTimesheet

SYNOPSIS

Gets timesheets from the Halo API.

SYNTAX

1
2
3
Get-HaloTimesheet [-SelectedTeam <Int32>] [-ShowHolidays] [-SelectedAgents <Int32[]>]
 [-SelectedTypes <Int32[]>] [-StartDate <DateTime>] [-EndDate <DateTime>] [-ShowAllDates]
 [-IncludeTimesheetFields] [-UTCOffset <Int32>] [<CommonParameters>]

DESCRIPTION

Retrieves timesheets from the Halo API - supports a variety of filtering parameters.

EXAMPLES

Example 1

1
PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS

-EndDate

Timesheet end date/time.

1
2
3
4
5
6
7
8
9
Type: DateTime
Parameter Sets: (All)
Aliases: end_date

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IncludeTimesheetFields

Include all timesheet fields in the result.

1
2
3
4
5
6
7
8
9
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SelectedAgents

Return the timesheet for the selected agents.

1
2
3
4
5
6
7
8
9
Type: Int32[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SelectedTeam

Return the timesheet for the specified team.

1
2
3
4
5
6
7
8
9
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-SelectedTypes

Return the selected types.

1
2
3
4
5
6
7
8
9
Type: Int32[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: @(0, 1 , 2, 3)
Accept pipeline input: False
Accept wildcard characters: False

-ShowAllDates

Include all days in the result.

1
2
3
4
5
6
7
8
9
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ShowHolidays

Include holidays in the result.

1
2
3
4
5
6
7
8
9
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-StartDate

Timesheet start date/time.

1
2
3
4
5
6
7
8
9
Type: DateTime
Parameter Sets: (All)
Aliases: start_date

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UTCOffset

The UTC offset.

1
2
3
4
5
6
7
8
9
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

A powershell object containing the response.

NOTES