Java Sample – DeployCube.java for Profitability and Cost Management

Prerequisites: json.jar

Prerequisites: See Profitability and Cost Management Common Helper Functions for Java

    public void deployCube() throws Exception {        
        JSONObject json = new JSONObject();
        json.put("isKeepData", true);
        json.put("isReplaceCube", false);
        json.put("isRunNow", true);
        json.put("comment", "Cube deployment");
        
        String urlString = "%s/epm/rest/%s/applications/%s/jobs/ledgerDeployCubeJob";
        executeJob(urlString, "POST", json.toString());        
    }