cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sk2912
Level: Powered On

Send email with multiple attachments from SP list

Hallo Everyone,

 

I am trying to send email with multiple attachments from a SharePoint list when an item is modified.. The item i am calling has 2 attachments. I will only be updating the data not the attachments.

 

After running flow i am getting 4 emails. I need only one. 

 

First 2 emails have only 1 attachement while the other have 2 attachements. (Image attached)

 

I have reffered this forum for my formation of flow which is as follows: 

https://powerusers.microsoft.com/t5/Building-Flows/email-more-than-one-attachments-from-sharepoint-l... 

 

I have also attached my flow pictures below. 

 

Please let me know what to do. If possible please reply fast.

 

Thanks in advance,

Sanket

image.pngGetting 4 emailsimage.pngFirst 2 emails with 1 attachmentimage.pngThe other 2 with 2 attachements

image.pngFlow dia. 1Flow dia 2.PNGFlow dia. 2

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Send email with multiple attachments from SP list

You are getting four emails for two reasons.

 

1) In your Flow on the Yes side of your condition you are running a Get Attachments action.  This will retrieve the two attachments in your item.  It then runs a loop on each attachment.  Because their are two attachments it will run two times.

2) Inside the Loop( that runs twice) you have two actions to send an Email. 

 

So each loop sends two different emails and since the loop runs twice you get 4 emails total. To avoid this make sure you gather all the info you need for the email inside the loop, but only send the email once after you exit the loop.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Send email with multiple attachments from SP list

You are getting four emails for two reasons.

 

1) In your Flow on the Yes side of your condition you are running a Get Attachments action.  This will retrieve the two attachments in your item.  It then runs a loop on each attachment.  Because their are two attachments it will run two times.

2) Inside the Loop( that runs twice) you have two actions to send an Email. 

 

So each loop sends two different emails and since the loop runs twice you get 4 emails total. To avoid this make sure you gather all the info you need for the email inside the loop, but only send the email once after you exit the loop.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

sk2912
Level: Powered On

Re: Send email with multiple attachments from SP list

Hello @Pstork1 ,

 

Thank you very much.

 

Regards,

SA

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,651)