web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Automate - Building Flows
Answered

PDF file corrupted when attched to an Email

Like (0) ShareShare
ReportReport
Posted on 3 Aug 2018 11:26:23 by 23

Hi,

 

 i have a flow that reads a note form Dynamics 365. I do get a proper base64 string that i can decode to get the actual pdf-file using e.g. base64decode.org.

 

However, when i attach the file to an "Office 365 Outlook - Send email action using: decodebase64(BASE64STRING) i dont get an error in flow but the file received in outlook is corrupt and cannot be opened. Flow_setup_SendEmail_Action.PNG

 

I also noticed that the filsize shown as email attachment is actually ~25% larger than the acutal file from Dynamics. 

 

 

  • Verified answer
    Michael Dohr Profile Picture
    23 on 09 Aug 2018 at 09:27:16
    Re: PDF file corrupted when attched to an Email

    Ok, 

     

    in the end this was an easy "fix". 

    I had to use "Base64toBinary" in the expression to convert my Base64-string. 

    Flow_Solution.PNG

     

     

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete