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 / 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,402 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

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