For each loop in flow designer not checking all records
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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*****