Why doesn’t this work?
It only loops once and then just ends the flow.
Hi @suhi10jr
Welcome to the forums!
The Flows variables X and Y you have will only fire one time on the first iteration. Flows variables don’t currently work in loops, although we are going to be fixing this in the near future.
Based on what I can see from your flow, it looks like you’re trying to loop through Y until you find a value that matches X and then output the index.
Try the below flow changes as it will send all the info on each iteration of the loop so you don’t have the issue with the variables:
a record (JSON) is constructed, the index value is incremented by 1, and then the check is performed. If it’s false, the record is re-sent to the evaluate block, if it’s true, then the record is output and you can select the index.
Let me know if this works for you.
Thank you! Works well, just very slow. Is there any more optimized way to do this?
That could work, but i tried the filter function and just nothing happened. I was probably doing something wrong.


