Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

2 attachments in one email

(0) ShareShare
ReportReport
Posted on by 648

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"})}}

 

)

Categories:
  • turnerj3 Profile Picture
    turnerj3 2,039 on at
    Re: 2 attachments in one email

    Good job! Thanks for posting that solution. Looks like you found an easier way.

  • dalacarelia_196 Profile Picture
    dalacarelia_196 648 on at
    Re: 2 attachments in one email

    Thank you dor the effort 🙂

  • dalacarelia_196 Profile Picture
    dalacarelia_196 648 on at
    Re: 2 attachments in one email

    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"})
    }]}

     


    )

  • Verified answer
    turnerj3 Profile Picture
    turnerj3 2,039 on at
    Re: 2 attachments in one email

    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

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.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard