web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / 2 attachments in one e...
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:
  • Verified answer
    turnerj3 Profile Picture
    2,039 on at

    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

  • dalacarelia_196 Profile Picture
    648 on at

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

     


    )

  • dalacarelia_196 Profile Picture
    648 on at

    Thank you dor the effort 🙂

  • turnerj3 Profile Picture
    2,039 on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard