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 / How to remove new line...
Power Automate
Unanswered

How to remove new line when creating a CSV table from a SharePoint List

(0) ShareShare
ReportReport
Posted on by 4
 I need help to remove new lines as I am new to power automate.
 
I am copying a SharePoint List into a CSV table which is then placed into SharePoint folder. 
 
When I open the CSV file, a cell that has return/new lines in the original data, the data is being broken across multiple rows.  
 
This is my workflow that generates the table.  I can't find a solution to remove the newlines prior to the CSV file creation. Does anyone have a solution?
 
 
 
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Hey, You can try the solution/Expression below..
     
    join(split(item()?['Title'], decodeUriComponent('%0D%0A')), ' ')
     
    This function decodes the URI-encoded string %0D%0A, which represents a carriage return and line feed (\r\n). This is typically how line breaks are encoded in URLs or certain contexts. decodeUriComponent('%0D%0A') returns the actual line break characters.
     
     
     
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     
  • PP-08111920-0 Profile Picture
    4 on at
    I tried your solution join(split(item()?['Title'], decodeUriComponent('%0D%0A')), ' ').  The flow is continuing to run when other the branches have completed.  I'm not sure why this is happening. 

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard