Running a rest api on business rule returning error
Summary
I am trying tu invoke a API from a Business rule and it is returning a errorContent
I am trying to run a business rule calling a api, I have created an named connection called RESTAPI, however it returning a errror: A method called by the script failed on line: 3, with error: An error occurred while processing this page.
Any suggestion i appreciate,
I send below the code:
HttpResponse<String> CurYrResponse = operation.application.getConnection("RESTAPI").get("/HyperionPlanning/rest/v3/applications/appname/substitutionvariables/CurYr").asString()
def CurYr = new JSONObject(CurYrResponse.body).getString("value")
println "Current year=$CurYr"
Version
20.01.33
Tagged:
1