Public/Set-TMTaskOnHold.ps1
Function Set-TMTaskOnHold { param( ## Extra Features / Data Values [Parameter(Mandatory = $false)][pscustomobject]$ActionRequest, [Parameter(Mandatory = $false)][String]$Message, [Parameter(Mandatory = $false)][String]$Data, [Parameter(Mandatory = $false)][Boolean]$AllowInsecureSSL = $false ) ## If the Script wants to provide a 'Message', Messages are logged as task notes. if ($Message) { $MessageOption = @{ Message = $Message } } if ($Data) { $DataOption = @{ Data = $Data } } ## Post Back Success with Data and Messages as provided by the Script Set-TMTaskAction -ActionRequest $ActionRequest -State 'error' @MessageOption @DataOption -AllowInsecureSSL $AllowInsecureSSL } |