web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attaching multiple fil...
Power Automate
Answered

Attaching multiple files from Email received trigger to a Send an email action?

(1) ShareShare
ReportReport
Posted on by 4
Hi all,
 
I am trying to build a flow that received 3 .PDF documents
1. A100.pdf
2. B200.pdf
3. C300.pdf
 
A100.pdf is later used with the AI modal to extract information, and the initial email itself is being exported, converted and saved as a PDF which will also be attached. So, in total my last 'Send an email' action needs to have 4 attachments - Exported Email.pdf, A100.pdf, B200.pdf and C300.pdf.
 
I have only managed to get A100.pdf and Exported Email.pdf to attach successfully. I tried looping through all of the attachments and appending them to an Array variable - however the received email had corrupted PDFs and/or blank white pages
 
My flow is as follows:
1. When a new email arrives in a shared mailbox (V2)
2. Export email (V2)
3. Create file
4. Convert file
5. Save to PDF
6. Get file content (steps 2-6 are used to save the email as PDF and attach it later)
7. Apply to each (attachments from the trigger)
8. Condition (checks for attachment name A100.pdf)
9. Get attachment
10. Extract information from documents
11. Compose email body using data from step 10.
12. Send an email (V2)
 
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,892 Super User 2026 Season 1 on at
    Hi,
     
    Here is a working flow.  In this example, I am sending 15 attachments in the send email action.  The key here is for the content type, you need to use the expression base64ToBinary(), otherwise as you mentioned, the flow works but the content is corrupt.
     
     
    It sounded like you were 100% on and on the right track with an append array action, but most likely had an issue with the file content.
     
     
     
    As you already know, selecting the attachment name dynamic content will wrap your append action in a for each shown below.  For your ContentBytes, you are using the expression base64ToBinary() and selecting the Content Bytes from the trigger.
     
     
     
    Lastly, OUTSIDE of the for each, use the send an email action and reference the Attachment1 variable in the attachment section.
     
     
     
    Works in testing.  This is almost an identical for when you want to work with multiple attachments from a Form submission, same framework, different trigger.
     
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • KP-05022303-0 Profile Picture
    4 on at
    @trice602 thank you so much!
     
    As you said I was 100% on the right track, I was just missing the base64ToBinary() function in my expression and now it works like a charm!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 224 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 181 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard