Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

AssignVariable value in RaisFault not setting up dynamically

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 Solved
0 4 368
1 ACCEPTED SOLUTION

Found that <Ref> using without {} is working. so -

<AssignVariable>
  <Name>raiseFaultSource</Name>
  <Ref>someflowvariable</Ref>
</AssignVariable>

View solution in original post

4 REPLIES 4