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 / split get file content
Power Automate
Unanswered

split get file content

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I feel like I've searched the whole internet now, but I can't get it to work.

I have a CSV file in the SharePoint, with the content i get via "get file content".

TimoB_0-1679639085871.png

 

I now must divide the content; each line ends with "/r/n"

I have tried this

split(body('Get_file_content'), '\r\n')

 

 

and that

split(body('Get_file_content'),decodeUriComponent('%0D%0A'))

and more.

 

 

But nothing works.

If I first load the content into a string variable, it works for small files, but not for large ones.

 

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @TimoB ,

     

    Please try:

    vdezhilimsft_1-1679641836430.png

     

    vdezhilimsft_0-1679641811718.png

    split(base64toString(body('Get_file_content')?['$content']),decodeUriComponent('%0D%0A'))

    vdezhilimsft_2-1679641873387.png

     

    Best Regards,

    Dezhi

     

     

  • CU13031221-0 Profile Picture
    4 on at

    Hello  v-dezhili-msft,

     

    I have to change the "Infer Content Type" to no

    TimoB_0-1679643095479.png

     

    else I get this error.

    TimoB_1-1679643103810.png

     

    the output then, is this.

    TimoB_2-1679643163302.png

     

    I think it is, because the input file has more than 131000 characters in it.

     

     

     

     

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @TimoB ,

     

    Can I see the output of your get file content action?

     

    Best Regards,

    Dezhi

  • CU13031221-0 Profile Picture
    4 on at

    here it is

     

    TimoB_0-1679647155624.png

     

    if i set the "Infer Content Type" to yes

    it looks like this.

    TimoB_1-1679647430592.png

     

     

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard