Groovy to call PCM Rules
Summary:
Please confirm what is wrong in this code to trigger PCM rules from Groovy
Content (please ensure you mask any confidential information):
This is the code I have in my groovy:
HttpResponse<String> jsonResponse = operation.application.getConnection("DI_Connect")
.post("/rest/V1/applications/ALLOAPP/povs/1-Segment/jobs/runLedgerCalculationJob")
.header("Content-Type", "application/json")
.body(json([
"dataPOVName" : "FY25-Feb-Actual-Final",
"isExecuteCalculations" : "true",
"exeType" : "ALL_RULES",
"isClearCalculated" : "true",
"isRunNow" : "true",
"optimizeReporting" : "true",
"comment" : "This is run with Groovy",
"stringDelimiter" : "-"
])
)
.asString();
The Model Name is "1-Segment".
When I run this it errors out with "NOT_FOUND"
Version (include the version you are using, if applicable):
Tagged:
0