Invoking a cube Refresh via a Business Rule with Parameters
Summary:
I am able to do a Refresh using a rest api in a groovy script with parameters but not the parameter I want
-- This did NOT work
HttpResponse<String> Jresponse = operation.application.getConnection("REST_API").post()
.header("Content-Type", "application/json")
.body(json("jobType": "CUBE_REFRESH",
"jobName": "Refresh DB",
"parameters": ["terminateActiveRequestsBeforeCubeRefresh": "false"]))
.asString()
-- This worked
HttpResponse<String> Jresponse = operation.application.getConnection("REST_API").post()
.header("Content-Type", "application/json")
.body(json("jobType": "CUBE_REFRESH",
"jobName": "Refresh DB",
"parameters": ["allowedUsersDuringCubeRefresh": "All Users"]))
.asString()
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):