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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sending as PDF with an...
Power Apps
Answered

Sending as PDF with an additional attachment

(0) ShareShare
ReportReport
Posted on by 4
Hi. So I can create a form that gets converted to PDF and sent via email. And a form that will send attachments via email. But I can't combine the 2 together. I'm just not sure of the syntax. Can anyone help?
 
Form 1:
 
Office365Outlook.SendEmailV2(
   "email@address.com",
    "Subject" ,
    "Message.",
    {
        Attachments: Table(
             {
                 Name: "filename.pdf",
                 ContentBytes: PDF(Screen1)
             }
         )
    }
 );
 
Form 2:
 
{
        Attachments: ForAll(
            att_Attachments.Attachments,
            {
                ContentBytes: Value,
                Name: Name
            }
        )
    }
);
 
Categories:
I have the same question (0)
  • PM-14111400-0 Profile Picture
    4 on at
    Thanks Warren. That worked perfectly.
  • Verified answer
    WarrenBelz Profile Picture
    153,507 Most Valuable Professional on at
    You should be able to combine them like this
    Office365Outlook.SendEmailV2(
       email@address.com,
       "Subject",
       "Message.",
       {
          Attachments: 
          Table(
             {
                Name: "filename.pdf",
                ContentBytes: PDF(Screen1)
             },
             ForAll(
                att_Attachments.Attachments,
                {
                   ContentBytes: Value,
                   Name: Name
                }
             )
          )
       }
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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

Forum hierarchy changes are complete!

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
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard