Looping through records in a For Each loop in a Flow

Mahesh_Krishnan
Giga Guru

All:

While testing a flow that contains a For Each loop the test is getting executed only for the first record in the loop and not the second; I am using a Lookup Records step prior and for each record in that result I am executing a series of steps.  However, the steps are executed only for the first record in the Lookup Records result.

Appreciate any insights the group is able to offer.

Thanks!

Mahesh

3 REPLIES 3

Mahesh_Krishnan
Giga Guru

If it helps, the following screenhot shows the flow logic:

find_real_file.png

When I remove the End step it does loop through the records, but then it runs both branches of the If condition, which is not what I want.

 

Thanks!

It depends on what objects you are returning in 1--> CTS onboarding case records.

You can run the flow using test functionality to see number of records.

 

I also see that you are trying to send reminders with this workflow.

Below flow works for similar functionality.

 

find_real_file.png

Mahesh_Krishnan
Giga Guru

All:

I was able to solve the issue by avoiding use of the End step.

Thanks for your response Sachin!