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

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
    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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard