Skip to main content

Notifications

Community site session details

Community site session details

Session Id : y1ewHRyY6eyPgP1JR/Mwin
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 8 Nov 2024 19:38:08 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?
 
 
 
  • PP-08111920-0 Profile Picture
    4 on 11 Nov 2024 at 15:43:11
    How to remove new line when creating a CSV table from a SharePoint List
    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. 
  • CFernandes Profile Picture
    8,285 Most Valuable Professional on 09 Nov 2024 at 17:14:23
    How to remove new line when creating a CSV table from a SharePoint List
    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.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started