cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PoohBear
Level 8

For each "Send Email" is only sending the first item returned in Get Items

I have a recurring flow that looks to a SharePoint list and gets items that match a specific date and listing status. When it finds the correct items it sends out an email to remind people of their upcoming PTO. The flow is returning the correct items, but it is only sending the email to the first item it finds. The "Send Email" is within a "For Each". I have many other flows built the same way and they work as expected. I am can't figure out why this is happening. Any suggestions is appreciated.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: For each "Send Email" is only sending the first item returned in Get Items

Hi @PoohBear ,

 

Because Send an email with option is similar to the Approval action, the action needs to wait for Approver to execute the approval, and the action is executed successfully, so your Flow is stuck in the first Approval request.

 

You could try the settings below, click Settings, and set Degree of Parallelism to the maximum.

60.PNG61.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
PoohBear
Level 8

Re: For each "Send Email" is only sending the first item returned in Get Items

RecurringFlow.png

PoohBear
Level 8

Re: For each "Send Email" is only sending the first item returned in Get Items

This should be sending 25 emails but only 1 goes out. 

PoohBear
Level 8

Re: For each "Send Email" is only sending the first item returned in Get Items

I did some more testing and if I just use the regular "Send Email" it works as expected. However, if I use "Send email with options" it only sends the first item it finds. I have a bunch of other flows that use the "Send email with options" used in a "For each" and they work just fine. Does anyone know of a change to the platform that I am unaware of?

Super User
Super User

Re: For each "Send Email" is only sending the first item returned in Get Items

Hi @PoohBear ,

 

You screenshot shows that it has got 25 results but showing as still processing.

 

Could you send another screenshot of the full run history?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: For each "Send Email" is only sending the first item returned in Get Items

Hi @PoohBear ,

 

Because Send an email with option is similar to the Approval action, the action needs to wait for Approver to execute the approval, and the action is executed successfully, so your Flow is stuck in the first Approval request.

 

You could try the settings below, click Settings, and set Degree of Parallelism to the maximum.

60.PNG61.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

PoohBear
Level 8

Re: For each "Send Email" is only sending the first item returned in Get Items

I will try this and let you know. Thanks for responding. 

PoohBear
Level 8

Re: For each "Send Email" is only sending the first item returned in Get Items

Changing the setting worked. I sincerely appreciate you responding. 

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,243)