The Zurich release has arrived! Interested in new features and functionalities? Click here for more

For each loop in flow designer not checking all records

anjali viswanad
Tera Contributor

For each loop in flow triggering for the first record only and email sends as per flow but remaining records got ignored. No email triggered for the remaining.

6 REPLIES 6

@anjali viswanad 

system is sending multiple emails to same recipient possibly because that user is approver for multiple records when you are iterating using For Each

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Chavan AP
Kilo Sage
You're likely using the wrong variable inside the loop.
Wrong: Using the original list variable inside the loop Right: Use the loop iterator variable
For Each
  Items: record_list
  2-For Each Item: current_record ( Use this variable)
  
  Send Email action:
    To: current_record.email  (NOT record_list.email )

Quick Fix Steps:
Open your For Each loop
Note the name in "2-For Each Item" field (e.g., current_record)
Update ALL actions inside the loop to use current_record instead of your original list variable


​
Glad I could help! If this solved your issue, please mark it as ✅ Helpful and ✅ Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****