Groovy to call PCM Rules — Cloud Customer Connect
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

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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