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 Apps / Sending an email with ...
Power Apps
Answered

Sending an email with attachment

(1) ShareShare
ReportReport
Posted on by

Hi

 

I am trying to use the Office365sendemail connector which I have used many times before but on this occasion I would like to be able to attach a PDF displayed in a gallery. Can someone please explain the syntax as I am not sure what to use for the ‘contentbytes’ parameter?

 

Many thanks. 

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

    Hi @jed76 ,

    If the PDF file is already generated, you would need to send the Identifier of the Library file to Power Automate and then get the content- Flow as below

    WarrenBelz_0-1720488817314.png

    Power Apps button in the Gallery (example back to User)

    EmailLibraryFile.Run(
     ThisItem.Identifier,
     User().Email,
     ThisItem.'File name with extension'
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • jed76 Profile Picture
    on at

    Many thanks Warren. I thought I might be able to do it without involving PowerAutomate but will give this a try. Thank you very much. 

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @jed76 ,

    The issue with the file already being saved in the Library is that you do not have access to the file content from Power Apps. If it was in an Attachment or Add Picture control, you can do it.

  • jed76 Profile Picture
    on at

    Many thanks. That makes sense. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard