web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with line breaks...
Power Automate
Unanswered

Issue with line breaks of a text area in the mail body

(0) ShareShare
ReportReport
Posted on by 121

Hello.

 

I am using a text area from the dataverse to put in the body of an email (Send an Email v2 action), because rich text is too limited (the limit of 4000 characters is occuring far before the limit, like after 1400 characters, probably due to html coding).

 

If the rich text is converting well in the email body, it's not the same for a text area. The line breaks are just appearing like spaces, and the whole text is within a single paragraph.

Which character should I search and replace with to have the text apperaing accurately? Or any other solution to prevent this?

Tahnk you!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Issue with line breaks of a text area in the mail body

    Hi @Gilles12 ,

     

    Please try this

    vxiaochenmsft_0-1701740966879.png

    vxiaochenmsft_1-1701740980753.png

    replace(outputs('Compose'),decodeUriComponent('%0A'),'<br>')
    vxiaochenmsft_2-1701741001429.png

     

    Best Regards,

    Wearsky

  • Gilles12 Profile Picture
    121 on at
    Re: Issue with line breaks of a text area in the mail body

    Thank you @v-xiaochen-msft, it works and this is exactly what I was looking for. I tested '\n', but yours works better!

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard