THIS IS AN EDITED UPDATE: I figured it out.
1. I needed to add &".pdf" to the end of the Name: "Weekly Report - Week Ending 1/19/2025",
2. I had the wrong variable referenced. Once I updated the variable the PDF form did appear in full in my Outlook.
I am practicing with Power Apps PDF function.
I am trying to email a PDF document from Power Apps that I created using the PDF function.
I can get the email to work, and a document does appear in my email inbox, but it doesn't appear
as a PDF file and I can't get it to open.
What am I missing?
Email button formula -
With(
{_PDF: PDF(PDF_View_Work_Order_Data_1)},
Office365Outlook.SendEmail(
"bblah@acme.com",
"Weekly Report - Week Ending 1/19/2025",
"Please find attached your weekly report for Dynamic Property",
{
Attachments:
{Name: "Weekly Report - Week Ending 1/19/2025",
ContentBytes: _PDF
}
}
));
PDF document opened in Outlook desktop -