Invoking a Cube Refresh via Business Rule
SummaryI am trying to create a business rule that executes the Cube refresh
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.
// 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();