File tree 3 files changed +29
-25
lines changed
3 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2023-04-04 - Version 1.14.1
4
+
5
+ * Fix bug in ` New-HaloWorkDay ` .
6
+
3
7
## 2023-03-10 - Version 1.14.0
4
8
5
9
* Add Custom Table endpoints ` Get-HaloCustomTable ` , ` New-HaloCustomTable ` , ` Remove-HaloCustomTable ` .
Original file line number Diff line number Diff line change 12
12
RootModule = ' .\HaloAPI.psm1'
13
13
14
14
# Version number of this module.
15
- ModuleVersion = ' 1.14.0 '
15
+ ModuleVersion = ' 1.14.1 '
16
16
17
17
# Supported PSEditions
18
18
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change 1
- Function New-HaloWorkday {
2
- <#
3
- . SYNOPSIS
4
- Creates an Workday via the Halo API.
5
- . DESCRIPTION
6
- Function to send an Workday creation request to the Halo API
7
- . OUTPUTS
8
- Outputs an object containing the response from the web request.
9
- #>
10
- [CmdletBinding ( SupportsShouldProcess = $True )]
11
- [OutputType ([Object ])]
12
- Param (
13
- # Object containing properties and values used to create a new item.
14
- [Parameter ( Mandatory = $True )]
15
- [Object ]$Workday
16
- )
17
- Invoke-HaloPreFlightCheck
18
- try {
19
- if ($PSCmdlet.ShouldProcess (" Workday '$ ( $Workday.name ) '" , ' Create' )) {
20
- New-HaloPOSTRequest - Object $Item - Endpoint ' workday'
21
- }
22
- } catch {
23
- New-HaloError - ErrorRecord $_
24
- }
1
+ Function New-HaloWorkday {
2
+ <#
3
+ . SYNOPSIS
4
+ Creates an Workday via the Halo API.
5
+ . DESCRIPTION
6
+ Function to send an Workday creation request to the Halo API
7
+ . OUTPUTS
8
+ Outputs an object containing the response from the web request.
9
+ #>
10
+ [CmdletBinding ( SupportsShouldProcess = $True )]
11
+ [OutputType ([Object ])]
12
+ Param (
13
+ # Object containing properties and values used to create a new item.
14
+ [Parameter ( Mandatory = $True )]
15
+ [Object ]$Workday
16
+ )
17
+ Invoke-HaloPreFlightCheck
18
+ try {
19
+ if ($PSCmdlet.ShouldProcess (" Workday '$ ( $Workday.name ) '" , ' Create' )) {
20
+ New-HaloPOSTRequest - Object $Workday - Endpoint ' workday'
21
+ }
22
+ } catch {
23
+ New-HaloError - ErrorRecord $_
24
+ }
25
25
}
You can’t perform that action at this time.
0 commit comments