I want to include multiple local parameters in the output of a rule. Here's a simplified version:
"Actions": {
"OnSuccess": {
"Name": "OutputExpression",
"Context": {
"Expression": "new { TempValueA = TempValueA, TempValueB = TempValueB, FinalResult = TempValueB / input.TotalUnits }"
}
}
}
But I get this error:
Exception while executing OutputExpressionAction: Expression is missing an 'as' clause
When I try to return in the above way.
How can I return multiple values from OutputExpression? Is there a supported way to include local params in the output?