Afternoon,
I'm looking at setting 2 screens on my app to be exported as PDF using the new experimental feature within PowerApps, on my screens I have the following to collect the PDF
ClearCollect(colpdfview,PDF(
scrPDFView,
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.A4,
DPI: 96,
ExpandContainers: false,
Margin:"1mm"
}
));Navigate(scrPDFViewResults)
This I assume grabs everything I need for the PDF apart from the name of the file which isn't important what it's called, I then move to the 2nd screen and Collect the same information for that screen into the same collection.
Now my issue is adding this info into an email as 2 attachments, I realise that I may be going about this the wrong way but as PDF stuff is still quite new to me and PowerApps I thought I'd ask.
I can do a single PDF into an email no problem using the following
Office365Outlook.SendEmailV2(
"myemail@email.com",
"Your pdf Subject",
"Your PDF is attached",
{
From: User().Email,
Attachments: Table(
{
ContentBytes: PDF(
scrPDFView,
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.A4,
DPI: 96,
ExpandContainers: false
}
),
Name: "Export.pdf"
}
)
}
)
Any help getting 2 PDF's using a method like above would be great, I'd like to stay away from Power Automate if possible and keep it within the app.
Thanks in advance
Simon