Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 144

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?

 

  • CU22080723-2 Profile Picture
    58 on at
    Re: Send all files in one OneDrive for Business folder as attachment in one single e-mail

    Hi guuys,

    do you know how to fix the issue with photos. I cannot open kpeg photos files. Is it possible that the flow corrupts/breaks them?

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Send all files in one OneDrive for Business folder as attachment in one single e-mail

    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.

  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: Send all files in one OneDrive for Business folder as attachment in one single e-mail

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1