Skip to main content
Community site session details

Community site session details

Session Id : PvpIhSM4R3OzsJDu1gr67C
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 5 Sep 2019 05:45:57 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 05 Nov 2023 at 19:29:51
    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 06 Sep 2019 at 06:53:53
    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 05 Sep 2019 at 16:42:56
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Loading complete