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

Bhimashankar H
Mega Sage

Hi @anjali viswanad ,

 

May be the data source (Look Up Records, Data Stream, etc.) may only be returning a single record, not multiple records.

 

Check the email is does not have any conflicting condtions.

 

Were there 728 expected records or emails to trigger?

 

Attach more clear images of flows, to understand better.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!

Bhuvan
Kilo Patron

@anjali viswanad 

 

Open the Flow -> Edit Flow -> Flow Properties -> Advanced Options 

 

Make sure Run as is set to System User. Save the flow and try again

Bhuvan_0-1756311276788.png

Refer below knowledge article,

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0824613

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

Ankur Bawiskar
Tera Patron
Tera Patron

@anjali viswanad 

How did you know it ignored the other ones?

Your For Each has 728 records to iterate and OOTB flow execution will only show the 1st and the last iteration for the For Each.

Did you check email logs and confirm how many times email triggered in last 15mins or so?

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

anjali viswanad
Tera Contributor

But it's triggering for the same users multiple emails how to avoid multiple emails for the same receipent.