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 / 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 Super User 2025 Season 2 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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard