Hello,
I am trying to get the status of a schedule using powershell. I use this code:
# Loop schedules
$getSchedulesResult.schedules.schedule | Where-Object {$_ -ne $null} | ForEach-Object {
Write-Output (" - Schedule ID : " + $_.id)
Write-Output (" Schedule name : " + $_.name)
Write-Output (" Schedule format: " + $_.format)
Write-Output (" Schedule format: " + $_.format.type)
Write-Output (" Schedule status: " + $_.status)
}
But it returns the following:
- Schedule ID : 14072
Schedule name : RESTful test (13669)
Schedule format: @{@type=pdf}
Schedule format:
Schedule status: @{@id=1; $=Completed}
Can anyone please explain how I can get the status "Completed" and the format "pdf"?
Thanks