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 / How to preserve line b...
Power Automate
Answered

How to preserve line breaks from Microsoft Forms when sending emails with Power Automate?

(2) ShareShare
ReportReport
Posted on by 4
Hello everyone.
I am using a form in Forms where people need to respond by skipping lines, for example:
 
Item 1
Item 2
Item 3
Item 4
 
and I use the Send an email (V2) function to collect the information in the forms to send the email.
 
With this code:
@{body('Get_response_details')?['ra6608fb4e70b489e84fba2b0bdab8552']}
 
Then the email is sent as:
Item 1 Item 2 Item 3 Item 4
Is there any way to identify so that the items are on each line?
* The email is sent in html format
 
 
Any ideas or support would be appreciated!
Categories:
I have the same question (4)
  • Suggested answer
    Amardeep Raj Profile Picture
    74 on at
    Hi 
     
    You can try both expression which mentioned below
     
    @{replace(body('Get_response_details')?['ra6608fb4e70b489e84fba2b0bdab8552'], decodeUriComponent('%0A'), '<br>')}
    
    OR
    
    @{replace(body('Get_response_details')?['ra6608fb4e70b489e84fba2b0bdab8552'], '\n', '<br>')}
    
     
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
  • Verified answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Just add a Compose action in your flow with the following expression:
    replace(body('Get_response_details')?['ra6608fb4e70b489e84fba2b0bdab8552'],decodeUriComponent('%0A'),'<br>')
    Then use the Compose output in your "Send an email V2" action. This will help you preserve the line breaks.
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • OC-05102118-0 Profile Picture
    4 on at
    Hi Nandit.
     
    Thanks for the solution! 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    Hi
     
    Just to add though onto Nandits answer as its important to make sure your email is in HTML mode, if not it will not work.
     
    For future reference
    Secondarily, you can create an Array, and store the values there.
    Then use the Create HTML table, and pass in your array.
     
    It will automatically add "returns"

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard