Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Suggested answer

PDF Attachment Issue: Power Apps to Exchange/Outlook (Blank/Corrupted)

(0) ShareShare
ReportReport
Posted on by 28

 

Hi everyone,

I'm hoping someone can help me with a persistent and quite frustrating issue I'm facing in Power Apps.

I'm using the PDF() function within a Power App to generate a PDF, and then sending it as an attachment via the Office365Outlook.SendEmailV2 connector.

Here's the problem:


  • When the email is sent to a Gmail address, the PDF attachment opens and renders perfectly, with all the data visible.

  • However, when the exact same email is sent to an Exchange or Outlook recipient, the PDF attachment arrives either completely blank or corrupted.


  •  

This is really stumping me, as it works flawlessly for Gmail, suggesting the PDF generation itself might not be the core issue. Has anyone encountered this specific behavior before, or do you have any insights into why Exchange/Outlook might be handling these PDF attachments differently?

Any help or suggestions would be greatly appreciated!

  • Suggested answer
    StretchFredrik Profile Picture
    3,031 Super User 2025 Season 1 on at
    PDF Attachment Issue: Power Apps to Exchange/Outlook (Blank/Corrupted)
    Could you please share your PDF/send email code? Could you try something like the code below and see if it makes any difference:
     
    Office365Outlook.SendEmailV2(
        "recipient@example.com",
        "Subject",
        "Body text",
        {
            Attachments: Table({
                Name: "Report.pdf",
                ContentBytes: PDF(
                    galleryOrControlName,
                    {
                        Orientation: PaperOrientation.Portrait,
                        Size: PaperSize.A4,
                        DPI: 150,
                        ExpandContainers: true
                    }
                )
            })
        }
    )
    
    If my response solved your issue, please mark it as ✅ Accepted Answer and give it a like.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics