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

Invoking a cube Refresh via a Business Rule with Parameters

in Planning 13 comments

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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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