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 / PDF Attachment Issue: ...
Power Apps
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 30

 

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!

Categories:
I have the same question (0)
  • Suggested answer
    StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at
    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

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

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard