Skip to main content

Notifications

Power Automate - General Discussion
Answered

Add Line break in body select

(0) ShareShare
ReportReport
Posted on by 120

Hi,

 

I have sharepoint list the column is multiline text, but in email the line break not show

ex:

aaa

bb

 

the result:

aaa bb

 

i have try replace(item()?['Message'],outputs('Compose_NewLine'),'<br>') but its not work

the result:

aaa<br>bb

 

this is my flow

nrd10_1-1714121539049.pngnrd10_2-1714121573818.png

 

Thanks.

  • nrd10 Profile Picture
    nrd10 120 on at
    Re: Add Line break in body select

    It worked! Thank you.

  • Verified answer
    Re: Add Line break in body select

    Hi @nrd10 ,

    Please check this test:

    My Email Inbox:

    vyetonggumsft_3-1714125006752.png

     

    My SharePoint List:

    vyetonggumsft_2-1714124943379.png

    My Flow:

    Because the '<' and '>' symbols were escaped into '&gt;' and '&lt;' in the create html table step, I will replace these two escapes with '<' and '>' in the subsequent steps. 

    This will achieve the effect of line breaks in the email body.

    vyetonggumsft_7-1714125215650.png

    vyetonggumsft_6-1714125166926.png

    replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>')

    Best Regards,

    Sunshine Gu

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard