Java Sample – ExportTemplate.java for Oracle Profitability and Cost Management Cloud

Prerequisites: json.jar

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

    public void exportTemplate() throws Exception {
        String fileName = applicationName + "_Template_Export_File";
        
        JSONObject json = new JSONObject();
        json.put("fileName", fileName);
        
        String urlString = "%s/epm/rest/%s/applications/%s/jobs/templateExportJob";
        executeJob(urlString, "POST", json.toString());
        
    }