Hello iam testing the new PDF function in Power apps , i can send 2 emails but not 2 attachments in one mail is that possible ?
Se my code today
;;Office365Outlook.SendEmailV2(User().Email;" Info 1";" Info 1"
;{Attachments:{Name:" Info 1.pdf";ContentBytes:PDF(GalInfo1;{ExpandContainers: true; Margin:"30";Orientation: "Landscape"})}}
)
;;Office365Outlook.SendEmailV2(User().Email;" Info 2";" Info 2"
;{Attachments:{Name:"larlingsparm2.pdf";ContentBytes:PDF(GalInfo2;{ExpandContainers: true; Margin:"30";Orientation: "Landscape"})}}
)
Good job! Thanks for posting that solution. Looks like you found an easier way.
Thank you dor the effort 🙂
I find a solution , it is possible to run several PDF files from gallery 🙂
;;Office365Outlook.SendEmailV2(
User().Email;
"Info 1 and Info 2 " & ddeleven.SelectedText.Value;
"Kombi attachments of Info 1 and Info 2";
{
Attachments: [
{
Name: "Elevdata.pdf";
ContentBytes: PDF(TopGallery; {ExpandContainers: true; Margin: "20mm 20mm 20mm 20mm" ; Orientation: "Landscape"})};
{
Name: "Kurserna.pdf";
ContentBytes: PDF(Kurserna_Gallery; {ExpandContainers: true; Margin: "20mm 20mm 20mm 20mm" ; Orientation: "Landscape"})}
;
{ Name: "AjOf.pdf";
ContentBytes: PDF(GalAjOj; {ExpandContainers: true; Margin: "20mm 20mm 20mm 20mm" ; Orientation: "Landscape"})
}]}
)
It can be done, but you will need to add the pdfs to an attachment data card and then call the attachments in the email. I recommend watching this video by Shane Young. https://m.youtube.com/watch?v=Pa-pYEkLH-U