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.