Is it possible to do a or codition check while setting payload in Assign Message.
<Payload contentType="application/json" variablePrefix="$" variableSuffix="#">
{
"status": "$status1#" || "$status2#"
}
Answer by Mohammed Zuber · Mar 29, 2017 at 08:03 PM
Hi @akshay.anand9,
Any expressions are not evaluated in the payload. Only the variables will be replaced with values based on variables identified using variablePrefix and variableSuffix characters.
Cheers!
AssignMessage - How can I get all headers ? 2 Answers
Setting a FormParam overwrites all form params from request 1 Answer
How to generate XML response with the starting XML node describing version and encoding? 1 Answer
Fetching variable from js policy to assign message policy. 1 Answer
Changing a JSON payload "on the fly" 1 Answer