Skip to main content
10 events
when toggle format what by license comment
Oct 17, 2019 at 20:11 comment added Gortonington Please note though that AutomationInstance will display the oldest runs first, so since the return limit is 2500ish (I think) so if your automation has run over that many times, the latest run will not be in your response. You can try creating a complex filter around date to handle this, or set up your call for pagination based on 'HasMoreRows' property to ensure you get all the data available
Oct 17, 2019 at 5:52 comment added Naveen VM Awesome @zuzannamj. Thank you so much for pointing it to right object :)
Oct 17, 2019 at 5:51 vote accept Naveen VM
Oct 16, 2019 at 14:50 history edited zuzannamj CC BY-SA 4.0
added 10 characters in body
Oct 16, 2019 at 13:03 history edited zuzannamj CC BY-SA 4.0
deleted 17 characters in body
Oct 16, 2019 at 12:58 comment added zuzannamj I have updated my answer
Oct 16, 2019 at 12:57 history edited zuzannamj CC BY-SA 4.0
changed script
Oct 16, 2019 at 10:25 comment added Naveen VM Thanks for sharing your solution @zuzannamj. If you look at the values resulting in the cloud page, these status are for status of scheduling but not the status of running automation. For example, if the automation is paused, and if you run once on the automation and throwed an error. Then this SSJS will show as paused state instead of error. Am looking for error state in this scenario. Can you please help here.
Oct 16, 2019 at 10:22 history edited zuzannamj CC BY-SA 4.0
added 24 characters in body
Oct 16, 2019 at 10:17 history answered zuzannamj CC BY-SA 4.0