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 Automate - General Discussion
Answered

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

(0) ShareShare
ReportReport
Posted on by 119

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!

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
    119 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard