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

Community site session details

Session Id :
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:
I have the same question (0)
  • Verified answer
    turnerj3 Profile Picture
    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

  • dalacarelia_196 Profile Picture
    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"})
    }]}

     


    )

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

    Thank you dor the effort 🙂

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

    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard