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 / Send PDF as Email atta...
Power Apps
Answered

Send PDF as Email attachment where PDF is screen (without using flow)

(0) ShareShare
ReportReport
Posted on by

Great video by Reza shows the ability to create pdf from screen (works great), but would like to create and have the option to send pdf email to user (clicking on icon).  Reza shows on the video how he does it with a Gallery (send pdf to email), but this show for gallery, but i need it for the screen

 

my code that is not working, and i think because its missing the creation of the PDF from the screen.

 

Office365Outlook.SendEmailV2(User().Email,"Subject","Body of Email",{Attachements:Table({Name:"PDF Timesheet.pdf",ContentBytes:PDF(myscreen)})})

 

has anyone figured this out?

 

or possibly the option to print from the pdf viewer?

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

    Hi @vandam2 ,

    You just missed one step - you need to use the PDF() function to create a temporary Variable to send as the content

    With(
     {wPDF: PDF(myscreen)},
     Office365Outlook.SendEmailV2(
     User().Email,
     "Subject",
    	 "Body of Email",
     {
     Attachments: 
     {
     Name: "PDF Timesheet.pdf",
     ContentBytes: wPDF
     }
     }
     )
    );

     

    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.

    Visit my blog Practical Power Apps

  • vandam2 Profile Picture
    on at

    unbelievable,  works fantastic, that function will be used alot.. 

     

    thank you Warren

  • vandam2 Profile Picture
    on at

    one more (probably dumb question), are we able to bring in fields from the form into the body or subject line?

     

    like the title of the form, rather than "Subject", could we add "Subject" & title or something like that?

  • Bonniedog2 Profile Picture
    on at

    Just a follow-up question to this - works perfectly, except the PDF sent looks to be twice the height of the screen (set the screen with its own dimensions). Not sure if this is to do with the background PDF printer scaling options that can't change, or if there is anything that can be changed in PowerApps. Just can't see why this is happening. Thanks

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard