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 / Parsing CSV to readable
Power Automate
Unanswered

Parsing CSV to readable

(0) ShareShare
ReportReport
Posted on by 50

Hi folks,

 

I have a flow where is triggered when I receive an email with a specific file attached, this file is a CSV file, then it creates a file in SharePoint with all the data, so far at this point, when you open the file, all the data is readable.

The problem begins when I used the Get file content, which is getting my content, but the output is encoded and unreadable. Check below:

Donzera_0-1676009064400.png

 

I tried to use a Compose with the following code

<

base64tostring(outputs('Get_file_content')?['body']['$content'])

>

but it didn't work.

Donzera_1-1676009117218.png

Not sure what I am missing. I am new to Power Automate and not sure if this is the correct way to do that. 

Anyone can assist/help me?

Thanks! 🙂

 

 

 

 

Categories:
I have the same question (0)
  • aido Profile Picture
    26 on at

    Hi, @Donzera could you try using the updated compose string below:

     

    base64ToString(body('Get_file_content')['$content'])

     

    Looking forward to hearing how you go.

  • Donzera Profile Picture
    50 on at

    Hi @aido 

     

    Just tried this one, and I got the same result.

    Adding your suggestion:

    Donzera_1-1676253161081.png

    After Run the flow.

    Donzera_0-1676253119873.png

     

     

     

  • aido Profile Picture
    26 on at

    Hey @Donzera 

     

    Is it possible that the file is not plain text and cannot be directly converted to a string?

     

    If that's the case, could you try converting the base64 encoded content to binary format using the `base64ToBinary` function, and then converting the binary data to a string using the `binaryToString` function:

    binaryToString(base64ToBinary(body('Get_file_content')?['$content']))

     

    If this does not work, we may need to inspect the file's content before converting it. I can provide you with a suggested script to accomplish this.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard