Skip to main content

Notifications

Community site session details
Power Automate - General Discussion
Answered

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

Like (2) ShareShare
ReportReport
Posted on 5 Oct 2024 21:31:06 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:
  • Verified answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on 05 Oct 2024 at 23:42:39
    How to preserve line breaks from Microsoft Forms when sending emails with Power Automate?
     
    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!
  • Verified answer
    Michael E. Gernaey Profile Picture
    42,048 Super User 2025 Season 1 on 06 Oct 2024 at 07:05:27
    How to preserve line breaks from Microsoft Forms when sending emails with Power Automate?
    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"

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard