Wait for flow variable condition in Flow Designer?

kim-lindgren
Kilo Sage

I need a flow to wait for a condition that doesn't involve a record. The Wait for condition action only works against a record, but I need my Wait condition to be flow_variable1 = flow_variable2. This is because I am looping approvals and I need to check that Groups total = Groups approved, otherwise the flow should fail. Is this possible?

 

Best regards,

Kim

2 REPLIES 2

jonsan09
Giga Sage
Giga Sage

If you are looping you could try a while action for each group and create an approval. Otherwise you can try an IF statement for both variables to equal to each other. As long as you don't add an else or else if logic, the flow should wait till the IF condition becomes true
2023-11-11 14_20_06-Flow Designer - Flow Designer _ Testing Wait on Var.png

An IF statement for both variables to equal each other was the first thing I tried. We are using tasks in this case because approvals do not work as intended in this particular case.

 

I have tried a lot of different things but I am going to have to simplify the design a lot now to get it to work (and I know that it will work). One recurring problem has been the inability to access data pills inside an if statement, a do in parallell or a foreach.

 

I am really quite curious why it is that you can have an IF statement that says "If both of these tasks are closed..." and it will wait for the condition to become true, while in all other cases I have tried the IF logic is checked once and only once. It would be interesting to know what the rules are behind this and if those rules can be altered when you need it. Ideally, I would like to be able to alter them from case to case.