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

Community site session details

Session Id :
Power Automate - Using Flows
Suggested Answer

Powerapps gallery items in email

(0) ShareShare
ReportReport
Posted on by 34
Hello,
 
I have a powerapps gallery that shows attachments from a sharepoint list. I have set the app up so you can click checkboxes which adds the attachments to a collection called selectedattached. I know of no way to email these attachments through powerapps so i was hoping there was a way through power automate.
I have the same question (0)
  • Suggested answer
    Sam_Fawzi Profile Picture
    731 Super User 2025 Season 2 on at
    Powerapps gallery items in email
    You don’t have to use Power Automate for this – you can send the selected gallery attachments directly from Power Apps using Office365Outlook.SendEmailV2.
     
    Try this:
    Let users tick checkboxes in the gallery (Add the control if not there).
    Collect the checked records into a collection on check/uncheck.
    On the Send button, call Office365Outlook.SendEmailV2 and pass that collection as the Attachments table.
    Assume:
    Gallery name: galAttachments
    Checkbox in the gallery: chkSelect
    Attachment fields in the gallery: Name (file name) and Value (file content as ContentBytes)
    1. In the checkbox (inside the gallery)
    // OnCheck
    Collect(
        colSelectedAttachments,
        ThisItem
    );
     
    // OnUnCheck
    Remove(
        colSelectedAttachments,
        ThisItem
    );
     

    2. On the Send button
    Office365Outlook.SendEmailV2(
        "someone@contoso.com",
        "Selected attachments",
        "Please find the selected files attached.",
        {
            Attachments: ForAll(
                colSelectedAttachments,
                {
                    Name: Name,          // file name field
                    ContentBytes: Value  // file content field
                }
            )
        }
    );
     

    This collects only the items the user checked in the gallery and sends them as attachments in a single email, without needing a Power Automate flow. make sure to reset the attachment collection after sending the email.
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    674 Super User 2025 Season 2 on at
    Powerapps gallery items in email

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 489 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 479 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 271

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow