cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ClintonMohoupt
New Member

Return carriages being removed from Microsoft Forms when putting response in email body.

I am collecting some information in a form and sending that "Long Answer" response as an email body.

 

When the information is received and put into an email body all of the carriage return characters that were put into the form are removed. Therefore the person receiving the email has all of the different lines on one line. How do you ensure that any carriage returns are retained and included in the email being sent.

 

It looks terrible if the carriage returns are removed. Other posts were suggesting to remove HTML formatting. Unfortunately this functionality seems to be removed in the Send an Email (v2) option.

 

How do you collect the data from a "Long answer" in a form and keep the same formatting in an email being sent?

 

Any assistance would be greatly appreciated. 

1 REPLY 1
efialttes
Super User III
Super User III

Hi!

Let's assume you store the source text in a variable called 'myInputString'

I would try the following:

-Add a 'Compose' action block, lets rename it as 'Compose NewLine', now in order to assign it value, just hit 'Enter' from your keyboard

-Next add the following WDL expression to your email body:

replace(variables('myInputString'),outputs('Compose_NewLine'),'<br>')

 

Not with my laptop, unable to test. If this approach does not make the trick please share a screenshot from your new flow design

 

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (4,741)