Quantcast
Channel: SCN : Popular Discussions - RESTful Web Services SDK
Viewing all articles
Browse latest Browse all 1088

How to find the status of a schedule

$
0
0

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


Viewing all articles
Browse latest Browse all 1088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>