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 / Line breaks missing in...
Power Automate
Answered

Line breaks missing in Power Automate workflow email for SharePoint multiline columns

(0) ShareShare
ReportReport
Posted on by 46
Hello,

I have a SharePoint list which contains multiple multiline columns that's plain text.  I have a Power Automate workflow that triggers when a SharePoint item is created or modified.  Also, in the workflow, I have a Send an email (V2) action.  In the Send an email (V2) action, I've switched the content editor to html by clicking </> and added columns from the SharePoint list as dynamic content.
 
In the Send an email (V2) action, I've added replace(<your input>, '\n','<br>'). I've also tried initializing a variable, adding '\n' as the value and then adding in the Send an email (V2) action, replace(<your input>,variables('NewLine'),'<br>').

In the SharePoint list item, I add content to a multiline column which contains line breaks. However, when the workflow is triggered and sends an email, the column's contents are in one line and doesn't contain line breaks as intended.

Is there a way to fix this?
Categories:
I have the same question (0)
  • Verified answer
    Mark Nanneman Profile Picture
    991 Moderator on at
    Hello itchel123.
     
    Try putting an actual new line in a Compose, then use a replace function to replace all instances of that in your multiline text.

    Here's an example.
     

    One.

    I use a select to select the "Multiline Text" column from a sharepoint list with multiline text values.

    I also used a concat() to include each record's title, and to wrap it in <b></b> to make it bold.

    concat('<b>',item()?['Title'],'</b><br>',item()?['MultiLineText'])

     

     


    Two. 

    I store an actual new line in a compose action (literally just press enter once in it to create a new line character).

     

    Three. 

    I join the output array from my select with a '<br><br>', then wrap it in a replace() function to replace each new line (by referencing your Compose_New_Line compose) with "<br>"

    replace(
        join(
            body('Select'),
            '<br><br>'
        ),
        outputs('Compose_New_Line'),
        '<br>'
    )
     
     

    Test Run

     
     Hope that helps!  If it does please give me a like and mark this as an answer.
     
  • Suggested answer
    itchel123 Profile Picture
    46 on at
    Hi Mark Nanneman,
     
    Your suggested answer works for me.  First, I've created a Compose action and pressed enter to create a new line character.  Second, in the Send an email (V2) action, I've added the following: replace(<your input>,outputs('Compose_New_Line'),'<br>').
     
    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

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard