Invoking a Cube Refresh via Business Rule
Summary
I am trying to create a business rule that executes the Cube refreshContent
I am trying to create a business rule that executes a cube refresh. I have created a job called "cube_refresh" and tried to execute via groovy script.
However it doesn't invoke the cube refresh. Any help is appreciated.
Below is the code i am using.
Thanks
Version
20.01.33Code Snippet
// Refresh the cube
def refresh = new JSONObject()
.put("jobType","Cube Refresh")
.put("jobName","refreshcube")
.toString()
// Call DM POST REST API to refresh the cube.
HttpResponse<String> jsonResponse = connection("https://xxxxxx.epm.em2.oraclecloud.com/HyperionPlanning/rest/v3/applications/appname/jobs","username","password").post()
.header("Content-Type", "application/json")
.body(refresh)
.asString();
Tagged:
0