Flow Designer | Do the following until loop | limit iteration number

gabriel_sk
Tera Contributor

Hello guys,

I have an issue with Flow designer and "Do the following until" loop...

Situation:
I have a subflow that run a "do the following until" loop containing an action and a "wait for duration of time" condition.
I would like this loop to run just 3 times but I cannot find the way to specify this in the until condition.

I believe this is a quite easy requirement that could be accomplished with an OOTB solution but I cannot achieve this, maybe I am missing something...
I thought to create an output variable from the action and have the value increase but each time the action run the value is overwritten... also I cannot edit the action output value in the subflow.

Any suggestion?

Thanks a lot!

11 REPLIES 11

Azim3
Tera Contributor

hey @gabriel.sk : Did you find the solution for this on NewYork?

Kiran19
Kilo Contributor

I'am using Paris release and not able to find the counter action. Any advise ?. thanks

deenbandhusingh
Giga Expert

I was having same problem. I figured out the solution.

I created a flow variable named count, incrementing it inside do...until and the until condition is count = 3.

 

This I had to do because the Do...Until works opposite of Do...While. So in our case, the code is

Do

---Something---

Until

count is 3.

@deenbandhusingh can you please explain how we can achieve this or please provide any screenshot if possible.

ceate a flow variable
count - integer


Set Flow Variables
count = 1

Do the following
   Create Catalog Task
   Set Flow Variables
   count = count + 1
Until
   count is 3