cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User
Dual Super User

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

View solution in original post

6 REPLIES 6
RezaDorrani
Dual Super User
Dual Super User

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

Anonymous
Not applicable

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

multichoicemultichoicelongtextlongtext

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

Anonymous
Not applicable

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

Thank you for that! What a relief.

AlexPMayer42
New Member

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,046)