cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TrulsB
Helper III
Helper III

Send all files in one OneDrive for Business folder as attachment in one single e-mail

In OneDrive for Business i have a folder call /SendFiles

 

The file names is dynamic in this folder, so there is always different filenames on the files. I like to create a Flow sending all files in this folder, as attachment in one single e-mail.   The files should be deleted after the email is sendt. 

 

eg. 

Files:  test001.jpg, test002.jpg, test001.doxc is in the folder /SendFiles and should all be attached in a email to eg john.doe@test.com. 

 

The next day, the files:  test004.jpg, test005.jpe, test002.docx is in /SendFiles and should be attached to an email to eg. jane.doe@test.com.

 

Any idea how to send all files in a OneDrive for Business filder in one single e-mail?

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @abm ,

 

Have your problem been solved refer to @abm 's solution, please take a try and if your problem could be solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

2 REPLIES 2
abm
Super User III
Super User III

Hi @TrulsB 

 

The below flow steps explains how to send muliple attachments as single email.

 

oned1.png

oned2.png

 

Above the expression for the ContentBytes are as follows:

body('Get_file_content_using_path')['$content']

 

Finally place the send an email flow action step outside the loop.

oned3.png

 

Reference: https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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!

Learn more from my blogPower Automate Video Tutorials
v-alzhan-msft
Community Support
Community Support

Hi @abm ,

 

Have your problem been solved refer to @abm 's solution, please take a try and if your problem could be solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (31,135)