javascript payload:
var caseType = ${execution.variables.caseType}
var payload = {“name” : “Mark as completed :” +caseType }
payload
not able to read these variables
var caseType = ${execution.variables.caseType}
var payload = {“name” : “Mark as completed :” +caseType }
payload
not able to read these variables
Hi @telukuntla,
Try the following
var caseType = execution.getVariable("caseType");
var payload = {“name” : “Mark as completed :” + caseType };
payload;
tried with the same but no luck
Any errors?
no any error in the logs and api invocation it self not happening.
if i change to fixed value , i mean remove the logic for caseType in payload its working fine
Okay
I see that you are using the http connector. I personally prefer to use external task.
As per the example in below URL, try setting Variable Assignment Type to String or Expression
and put below
{“name” : “Mark as completed : ${caseType}"}