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