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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send email atta...
Power Automate
Suggested Answer

How to send email attachments through a Power Automate flow using a button in Power Apps?

(1) ShareShare
ReportReport
Posted on by 5
I'm trying to create a Power Automate flow that runs using a button in Power Apps. However, I keep getting an error. I got to the point where I managed to send the email, but the attachments (in this case, several PDFs stored in a SharePoint list) weren't included.
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    636 on at
     
     
    Power Apps → Power Automate → Send Email with Attachments (Quick Setup)
     
    Power Apps
    YourFlow.Run(ThisItem.ID)
     
    Power Automate
     
    1. Trigger: Power Apps (V2)
    Input: ItemID
     
    2. Get attachments
    Id = ItemID
     
    3. Initialize variable
    Name: AttachmentsArray
    Type: Array
    Value: []
     
    4. Apply to each (value from Get attachments)
    - Get attachment content
    Id = ItemID
    File Identifier = Id (from Get attachments)
     
    - Append to array variable:
    {
    "Name": items('Apply_to_each')?['DisplayName'],
    "ContentBytes": body('Get_attachment_content')
    }
     
    5. Send an email (V2)
    Attachments = AttachmentsArray
     
    Note (Important)
    - Works for small number of small files
    - Large or many files can fail due to array size/memory limits
    - If that happens, use file links instead of attachments
     
     
      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     
     
     
  • MD-15042255-0 Profile Picture
    5 on at
    Thank you. Is it possible to send more than one document at a time? In this case, it's more than one PDF document, but none of them are larger than 100 KB. Additionally, in Power Apps, I need to condition the button to date selection since these are daily reports.
  • Suggested answer
    Vish WR Profile Picture
    636 on at
     
    you can send more than one attachment as long as overall stream content exceed array limit
     
    Build a array with attachment and consolidate the attachment and send email 
     
      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard