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

Create or Update All Substitution Variables Defined for the Application

Hello,

I am trying to leverage "Update Substitution Variables " REST API and below is the code:

Through Postman it is working fine.

I am trying to execute it as I did for Business Rules, Data Maps.

I am new to groovy. I am not sure, if I am doing it in the right way.

def updatesubs =
{
"items": [{
"name": "Test_CurYr",
"value": "FY23",
"planType": "ALL"
}]
}

HttpResponse<String> jsonResponse = operation.application.getConnection("connectionname").post("/rest/v3/applications/applicationname/substitutionvariables")
.header("Content-Type", "application/json").body(updatesubs).asString();

I am getting the below error:

"Error:The Groovy script failed to compile with internal error: Compile Error:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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