You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Sample Groovy script to execute a REST API task that runs a Reports Book with a Global POV

Received Response
147
Views
3
Comments
edited Mar 7, 2024 3:10AM in EPM Platform and Freeform 3 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!