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 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
    153,117 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
    153,117 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

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard