Running Reports from REST

In order to automate our upgrade process more, I’m trying to run reports via REST. I did a trace and went too the Open API/Swagger screen, copied the Input example and filled in the trace values. When I try to submit the report to the TaskAgent, IIS returns a 500 saying it cannot find the parameters in the input. Here’s how I’m calling it:

and here’s the error message:

The parameter is certainly there. :thinking:

Start at the ds node (remove the parameters)

2 Likes

The JSON has to be formatted incorrectly. Try this linter https://jsonlint.com/

1 Like

Almost there, the appServerURL must be set for this to work and I have a ticket into the Cloud Team to do that. My goal is a PowerShell script that will run pre/post upgrade reports and compare them automagically (XML compare). It could work well with period close reports and saving reports to disc.

IF/WHEN I get it working, I’ll post the script.

Thanks!

3 Likes

Sounds pretty cool!

@Mark_Wonsil Did you ever get this working? I’m looking at something similar and any ideas for coding this would be great!