Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Issues decoding .msg file using base64ToString()

(0) ShareShare
ReportReport
Posted on by

I am currently building a flow that should read the contents of a .msg file. This file is base64 encoded and when transferring the data held in this to an online base64 decoder I am returned the appropriate information however, when I use the base64ToString() expression in my power automate flow it returns this data in the following format:

 

(sample of data)

"

��\u0011ࡱ\u001a�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000>\u0000\u0003\u0000��\t\u0000\u0006\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0003\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0010\u0000\u0000\u0002\u0000\u0000\u0000\u0007\u0000\u0000\u0000����

..."

 

using an online UTF16 decoder against this data returns this information in a string format where the details I require can be selected. Is there any way to achieve this entirely through a flow? or any reason why the base64ToString() expression is returning my original request in this format?

  • v-bofeng-msft Profile Picture
    on at
    Re: Issues decoding .msg file using base64ToString()

    Hi @dmcvey :

    I am afraid that Power Automate does not have an out-of-the-box action that can parse the content of the msg file and return the text in the email body currently . If you need such a function, I suggest you look for a third-party connector or API, or go to the Ideal forum to post your suggestions.

    Best Regards,

    Bof

     

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1