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

Error in Groovy Script while calling Change Status for Approval

Received Response
44
Views
3
Comments

Summary:

Hello Experts,

I am trying to call change status via groovy script by building the connection through other web services functionality in PBCS. Below is the error response from JASON,

Log messages : 

jsonResponse Status:500

jsonResponse Status_txt:

Kindly go through the below groovy script and let me know if there is any issue with the code.

Content (please ensure you mask any confidential information):

def Payload="""{

actionId=6&pmMembers=BU_5120&comments=promoted}"""

HttpResponse<String> jsonResponse = operation.application.getConnection("PUH")

.post("/planningunits/Budget::Manpower Working/actions/")

.header("Content-type","application/x-www-form-urlencoded")

.body(Payload).asString();

println "jsonResponse Status:"

println jsonResponse.status

println "jsonResponse Status_txt:"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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