Notifications
Announcements
Hi there,
You're very close! The issue lies in how you're passing the Size and Orientation properties — they're not part of the Attachments table but instead should be part of the PDF() function call.
Size
Orientation
Attachments
PDF()
According to the official Microsoft documentation, the PDF() function accepts a second argument with optional configuration settings, such as page size, orientation, margins, etc.
So instead of this:
Office365Outlook.SendEmailV2( User().Email, "TimeSheet", "TimeSheet Form PDF from Power Apps", { Attachments: Table({ Name: "TimeSheetForm.pdf", ContentBytes: PDF(timesheet), Size: PaperSize.Letter, Orientation: PaperOrientation.Landscape }) } )
You should structure it like this:
Office365Outlook.SendEmailV2( User().Email, "TimeSheet", "TimeSheet Form PDF from Power Apps", { Attachments: Table({ Name: "TimeSheetForm.pdf", ContentBytes: PDF(timesheet, { Size: "Letter", Orientation: "Landscape" }) }) } )
This version correctly places Size and Orientation inside the second argument of the PDF() function, which will generate a properly formatted 8.5" x 11" landscape PDF.
Let me know if you also want to adjust margins or expand containers — you can add those as well inside the same record.
Hope this helps!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268