Flow Designer For Each only iterates on 1 record. KB0824613?

fbs
Giga Expert

I have a flow that does a Lookup Records and then does a For Each on those records; for each record I write to the log.  There should be 5 records.  When I do a test run (shown in the attachment), it does say 1 of 5, but it is only iterating through one record.  Is this a bug?  I did see KB0824613, which says: Flow Designer "for each item in" action does not return all the records.  It says to change the "Run As" flow property from "User who initiates session" to "System User".  I did that, but it made no difference.  What am I missing here?  I am running Tokyo.

Thanks

1 ACCEPTED SOLUTION

It turns out that looking at the log file shows that the 5 records were logged correctly.  Somehow, the test run doesn't show each iteration, but the log file does.  I don't know if that's a bug in the test execution flow, or if it's just that I didn't know what to expect.  But in any case, this works fine.  Thanks

View solution in original post

8 REPLIES 8

You did put an end in the loop, than that will close the flow and it will not go to the next itteration.

MS25
Mega Sage

Please make sure you don not have END FLOW within FOR EACH 

 

JillaV
Tera Contributor

I didnot used any end flow but still only one record is iterating

 

@JillaV do you get any solution to this, I am facing with same issue.