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 / 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 (1)
  • Suggested answer
    Amardeep Raj Profile Picture
    18 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,493 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard