File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CippExtensions/Public/Halo Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ function New-HaloPSATicket {
7979 $body = ConvertTo-Json - Compress - Depth 10 - InputObject @ ($Object )
8080
8181 Write-Information ' Sending ticket to HaloPSA'
82- Write-Information $body
82+ Write-Host " Body we shipped: $body "
8383 try {
8484 if ($PSCmdlet.ShouldProcess (' Send ticket to HaloPSA' , ' Create ticket' )) {
8585 $Ticket = Invoke-RestMethod - Uri " $ ( $Configuration.ResourceURL ) /Tickets" - ContentType ' application/json; charset=utf-8' - Method Post - Body $body - Headers @ {Authorization = " Bearer $ ( $token.access_token ) " }
@@ -106,7 +106,7 @@ function New-HaloPSATicket {
106106 }
107107 Write-LogMessage - message " Failed to send ticket to HaloPSA: $Message " - API ' HaloPSATicket' - sev Error - LogData (Get-CippException - Exception $_ )
108108 Write-Information " Failed to send ticket to HaloPSA: $Message "
109- Write-Host " Body we tried to ship: $body "
109+ Write-Information " Body we tried to ship: $body "
110110 return " Failed to send ticket to HaloPSA: $Message "
111111 }
112112}
You can’t perform that action at this time.
0 commit comments