Announcements
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.
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
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
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.
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 427 Most Valuable Professional
11manish 201 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2