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 Automate / PDF corrupted when sen...
Power Automate
Answered

PDF corrupted when sending to Outlook - file fine in OneDrive and file when send down the first condition.

(0) ShareShare
ReportReport
Posted on by

Hi

 

Having a problem with a corrupted pdf when attaching a file and emailing to outlook. The file gets delivered perfectly down the first condition but then corrupted down the 2nd. PDF opens perfectly in OneDrive so that is not the issue.

 

Flow:

J_Sturg_1-1603292578823.png

 

 

Error:

J_Sturg_2-1603292694629.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @J_Sturg,

     

    Before inserting file content into the attachment file array, you could use base64() function to convert the file content to make sure it could be opened correctly. For example:

    base64(outputs('Get_file_content')?['body'])

    Screenshot 2020-10-22 152547.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard