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 include Line Br...
Power Automate
Unanswered

How to include Line Breaker from Long Text box and remove [" "] format from Multiple Choice answer (MS FORM) when sending HTML Email using MS FLOW

(2) ShareShare
ReportReport
Posted on by

I have a couple questions related to sending HTML Email from MS Form values using MS Flow:

 

1. How to include Line Breaker from MS Form Long Text box when sending HTML Email using MS Flow

Currently, it's converting the multi line values as a single line in the email. How do I keep the original format to include linebreaker in the email?

 

2. How to remove [" "] format from MS Form Multiple Choice answer when sending HTML Email using MS Flow

Multivalues are represented in array format, how do I remove this is MS Flow process?

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    Hi @Anonymous 

     

     

    for multi choice field use expression

     

    replace(replace(replace(dynamiccontentmultichoicefield,'["',''),'"]',''),'","',',')

     

    for long text line break 

     

    First create a compose action (rename it to NewLine)

    and add following expression

    decodeUriComponent('%0A')
    Capture.PNG

    Then in email use expression

     

    replace(dynamiccontentlongfield,outputs('NewLine'),'</br>')

     

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Community Power Platform Member Profile Picture
    on at

    @RezaDorrani, unfortunately this doesn't work. I'm getting literally string output. Could you please advise me?

    multichoicemultichoicelongtextlongtext

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @Anonymous 

     

    You need to use the expression syntax

     

    Capture.PNG

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Community Power Platform Member Profile Picture
    on at

    Thank you so much! This is really helpful. Is there some kind of documentation to go through for more advanced flows like this?

  • Tazfiend1 Profile Picture
    5 on at

    Thank you for that! What a relief.

  • AlexPMayer42 Profile Picture
    4 on at

    Reza,

     

    This fails if the Multiline Text field is NULL. This expression will first check that it is not NULL prior to trying to make the string change:

     

    if(equals(coalesce([FIELDNAME],'NULL'),'NULL'),'',replace([FIELDNAME],outputs('NewLine'),'</br>'))

     

    -Alex Mayer

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard