cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chanafee
Frequent Visitor

How to stop Flow from exponentially attaching files to email from a sharepoint list

I've created a flow to send an email with attachments from a sharepoint list to specified person when the expiration date column is equal to today.

 

The issue is, if I have multiple list entries with the same expiration date, the attachments from each item are included in each email as Flow goes through the list. So the first email sent has 1 file attached, second email has 2 files- the previous item's file and the current attachment, the third email has 4 files attached- first email's, second email's, and current attachment, etc. 

 

Any ideas on how to fix this so Flow stops including attachments from all list items??

 

This is my flow:
flow1.PNGflow2.PNGflow3.PNGflow4.PNG

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @chanafee ,

 

Please try this configuration.

  • Empty the array variable after each email is sent.

Image reference:

5.PNG

Hope it helps.

 

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

1 REPLY 1
v-bacao-msft
Community Support
Community Support

Hi @chanafee ,

 

Please try this configuration.

  • Empty the array variable after each email is sent.

Image reference:

5.PNG

Hope it helps.

 

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

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (43,786)