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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sending emails with at...
Power Apps
Unanswered

Sending emails with attachments from a form using powerapps and flow

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have an app which consists of a Form connected to a SharePoint list. On Submit I would like to generate an email out and attach the files uploaded as an attachment. 

I'm using Office365 SendEmailV2 to send email, no problem, that works ok, however struggling to attach the files on the email. For what I could read so far I need to create an array and add the files (multiple files) from the sharepoint list but would appreciate if someone come help me with clear instructions on how to proceed.

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    Hi @PlusCTRL ,

    This blog of mine should be what you need.

     

    Please click Accept as solution 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 giving it Thumbs Up.

  • PlusCTRL Profile Picture
    on at

    Thank you @WarrenBelz!

     

    That actually works, I've integrated the formula on my submit button, added the gallery, the labels and the choice box, all works a treat! However, would you be able to assist me in setting up in a way that ALL attachments are sent without having to select anything? Would it be a case of setting up the check box control invisible and maybe setting up to ON all the time?

    many thanks for your help so far 🙂

  • PlusCTRL Profile Picture
    on at

    Just did a test and that works! I've just changed the Visible option to false and selected Default to On on the check box. Do you think there would be a less convoluted way of doing this?

     

    Many thanks!

     

  • PlusCTRL Profile Picture
    on at

    If anyone is interested, I found a great article that breaks down how attachment works with the Office 365 connector:

    http://powerappsguide.com/blog/post/sending-email-attachments-with-office-365-outllok

     

  • Verified answer
    PlusCTRL Profile Picture
    on at

    I've just tested and found a clearer way to add ALL the attachments to the email without adding extra controls. Adding the code in here for others to use, my attachments control is names attControl

    {
     Attachments:
     RenameColumns(
     attControl.Attachments,
     "Value",
     "ContentBytes"
     ),
     Importance: "Normal"
     }
  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    Hi @PlusCTRL ,

    Even easier - just remove the gallery and send the attachment control content or hide the gallery and do not filter it.

     

    Please click Accept as solution 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 giving it Thumbs Up.

  • WarrenBelz Profile Picture
    153,042 Most Valuable Professional on at

    @PlusCTRL ,

    That is actually where I started the basis of my blog code and Shane Young did a video on this a couple of years back.

  • PlusCTRL Profile Picture
    on at

    Love Shane Young videos! And I have been reading your blog, lots of helpful information, so thank you!

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard