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 / Text document from out...
Power Automate
Unanswered

Text document from outlook is saving to SharePoint in gibberish via PA flow

(0) ShareShare
ReportReport
Posted on by 4

Hi, I'm having an issue with a power automate flow that is taking a text document from outlook and saving it to SharePoint. The email attachment is a text document in notepad and is displaying as expected. However, when the file is saved in SharePoint via the flow, it's saving in gibberish (below screenshot).

 

Tanisha_0-1702409529121.png

 

This is my current flow, which is working fine for another text file, I'm just not sure why it's not working for this file. 

Tanisha_1-1702409950336.png

Tanisha_2-1702409969114.png

Tanisha_3-1702409984030.png

Tanisha_4-1702410001355.png

Any help would be greatly appreciated, thank you! 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Tanisha 

    Please see this post as I believe that it provides a solution.

    You need to use the base64ToBinary() expression and use the file content as the input - the post explains how.

  • Tanisha Profile Picture
    4 on at

    Hi @ScottShearer

     

    Thank you for the quick reply. I tried both of the suggestions offered in that solution with no success. It did change the file output in SharePoint but just into a different looking gibberish. Any thoughts based on the changes I tried making to my flow shown below? 

     

    Tanisha_0-1702412417350.pngTanisha_1-1702412487802.pngTanisha_2-1702412503828.png

     

    Thank you,

    Tanisha 

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Tanisha 

    If the email that you receive has an image, for example in the signature block, that image is considered an attachment.  Is that possibly your issue?

    How many loops ran in your Flow when an email was received?  If there is more than 1, then the issue may be what I described.  You can test to see if the attachment file extension is .txt before you create the file.

     

  • Tanisha Profile Picture
    4 on at

    Hi Scott, There is no image in the email, however the attachment is in a zipped folder. Could that be the reason it's saving corrupted? The file extension in the zipped folder is .txt and when opened via the email it isn't corrupted, but my workflow is saving it to Sharepoint as corrupted. Should I have a step in the workflow to unzip the folder? 

     

    Thanks,

    Tanisha 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard