I want to set a variable value dynamically in <AssignVariable> in RaiseFault Policy. for example -
<AssignVariable> <Name>raiseFaultSource</Name> <Value>{someflowvariable}</Value> </AssignVariable>
so that I can use "raiseFaultSource" variable value in fault rules. is it possible?
Everything in Value is taken as string literal.
I have tried using <Ref> to reference flow variable, but it doesn't work as well.
Solved! Go to Solution.
Found that <Ref> using without {} is working. so -
<AssignVariable> <Name>raiseFaultSource</Name> <Ref>someflowvariable</Ref> </AssignVariable>
Found that <Ref> using without {} is working. so -
<AssignVariable> <Name>raiseFaultSource</Name> <Ref>someflowvariable</Ref> </AssignVariable>
Thank you Jitender for posting solution of the issue.
Yes, and if you want a full message template, then you can use the Template element:
<AssignVariable> <Name>nameOfVariableToSet</Name> <Template>{FlowVar1}.{FlowVar2}.foobar.{FlowVar3}</Template> </AssignVariable>
With AssignVariable, there are 3 options:
Thanks Dino!
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |