
Announcements
I want to generate customs PDF template using PowerApps and sent the to email. Can someone help to share step by step instruction since I never done custom pdf before. Thank you 🙂
This is how I am doing it. I have everything I need populated on my Screen 5 how I want the pdf. All my inputs are put in on Screen 4 so when I navigate to Screen 5 all I have to do is use a button at the very bottom of Screen 5 to trigger the pdf and email.
With(
{wPDF: PDF(Screen5,{DPI:72,Margin: "0.0in 0.5in 0.0in 0.5in"})},
Office365Outlook.SendEmailV2(
User().Email,
Concatenate("Purchase Order ",POinput.Text," from ",User().FullName, " on ",POdateinput.SelectedDate),
"PO attached",
{
Attachments:
{
Name: Concatenate(POinput.Text,"_",User().FullName,".pdf"),
ContentBytes: wPDF
}
}
)
);