cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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

Getting 4 emailsGetting 4 emailsFirst 2 emails with 1 attachmentFirst 2 emails with 1 attachmentThe other 2 with 2 attachementsThe other 2 with 2 attachements

Flow dia. 1Flow dia. 1Flow dia. 2Flow dia. 2

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

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
Highlighted
Dual Super User III
Dual Super User III

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

Highlighted

Hello @Pstork1 ,

 

Thank you very much.

 

Regards,

SA

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (11,139)