Sample Groovy script to execute a REST API task that runs a Reports Book with a Global POV
Summary:
I am trying to create a Groovy script that runs a Reports Book using a Global POV member. Specifically, I am trying to run "Get the book output" using the REST API task "/epm/rest/v1/books/{id}/output".
I might have the first part of the script working....
HttpResponse<String> jsonResponse = operation.application.getConnection("epm7_ows").post("/epm/rest/v1/books/xxxxxxxx-3333-3333-4444-111111111111/output?format=pdf&globalPov=Office:OFFNY").asString()
However, I'm struggling with the remainder of the groovy script that ultimately takes the results of the query and puts it into into a pdf file that can be accessed.
Tagged:
0