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 / Remove Line Breaks whe...
Power Automate
Answered

Remove Line Breaks when Adding Row to Excel

(0) ShareShare
ReportReport
Posted on by 86

Hi, 
I have a flow that when a new email is sent to me through Power apps, it will convert the email from HTML to TEXT and then add a row into excel.  When it adds to excel it is adding an extra line from my line break as well.  Can anyone help with how to remove the line break from excel?

This is my expression being used for "Facility" 

first(skip(split(first(split(body('Html_to_text'),'Location or Unit')),':'),1))

 

excel.JPGRun.JPG

Categories:
  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    Depending on the type of line break, try

     

    replace('yourString', decodeUriComponent('%0D%0A'), '')

     

    or

     

    replace('yourString', decodeUriComponent('%0A'), '')

    or both 😉

     

  • sgiorgio Profile Picture
    86 on at

    Thank you so much, it worked! 

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    You also can use function trim()

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard