Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Running a rest api on business rule returning error

edited Jan 21, 2020 4:51PM in Planning 6 comments

Summary

I am trying tu invoke a API from a Business rule and it is returning a error

Content

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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