cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lefitz
Level: Powered On

Microsoft Forms into Flow - Paragraph formatting problem

My team has had great success with using Microsoft Forms and Flow to complete after-action reports for important meetings.  Many of my colleagues travel frequently and so it's a great way for them to keep the whole team updated on their follow-up needs while they're on the go.

 

We are in the process of updating our form and I am having trouble getting the long answer in a form to maintain its formatting when sending the email through the flow. 

 

For example, someone may write in a long answer text box:

 

The meeting was great.  Follow up items needed:

- Call John

- Schedule next dinner

 

And when the information gets populated/processed through the Flow email I have set up, it comes through like this:

 

The meeting was great.  Follow up items needed: -Call John - Schedule next dinner

 

The Flow email is set up as HTML and all of the template formatting is great, it's just off in the actual answers that are auto-populated through the Forms submissions.  Any suggestions for how to preserve this paragraph formatting?

 

Thank you!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz , this took me a bit of working out but I got there eventually.

 

Step 1: Create a variable of type text, called "carriage return" as an example. Click into the value box, and press your return key. This is effectively storing the carriage return within the variable.

 

Step 2: When you're outputting the text from Forms into your email, use an expression to replace the carriage returns with the variable created in Step 1. My expression looks like this:

replace(body('Get_response_details')?['rf76100c2dda743e7bb971600eb7cd7f3'],variables('carriage return'),'<br>')
This will then output HTML into your email and so format correctly.




Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

Highlighted
Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz you'll now find the issue and resolution on YouTube:

https://www.youtube.com/watch?v=81RKtE9xS9k

 

 





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

7 REPLIES 7
Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz , this took me a bit of working out but I got there eventually.

 

Step 1: Create a variable of type text, called "carriage return" as an example. Click into the value box, and press your return key. This is effectively storing the carriage return within the variable.

 

Step 2: When you're outputting the text from Forms into your email, use an expression to replace the carriage returns with the variable created in Step 1. My expression looks like this:

replace(body('Get_response_details')?['rf76100c2dda743e7bb971600eb7cd7f3'],variables('carriage return'),'<br>')
This will then output HTML into your email and so format correctly.




Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

lefitz
Level: Powered On

Re: Microsoft Forms into Flow - Paragraph formatting problem

@MattWeston365  thank you so much - I'm encouraged to know there's a solution!  I will admit I'm a bit of a Flow newbie - which value box do I need to click in for Step 1? Step 2 I understand how to build that into the code so (I believe) am set there.

 

I so appreciate your help and guidance!!  This will make a huge difference for us once it's all said and done.

Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz I'll make it as a video which will be easier to follow. I'll post a link shortly.





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

Highlighted
Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz you'll now find the issue and resolution on YouTube:

https://www.youtube.com/watch?v=81RKtE9xS9k

 

 





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

Super User
Super User

Re: Microsoft Forms into Flow - Paragraph formatting problem

Hi @lefitz did you manage to resolve your issue?





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

lefitz
Level: Powered On

Re: Microsoft Forms into Flow - Paragraph formatting problem

@MattWeston365 , I've just returned from a two-week vacation and am back online.  This is amazing!  Thank you so much. I'm going to test it on my end tomorrow and will let you know.  I'm truly grateful for your help in resolving this. 

lefitz
Level: Powered On

Re: Microsoft Forms into Flow - Paragraph formatting problem

@MattWeston365 , success!  I was able to test it just now.  This is an amazing help and will save our team so much time.  Thank you, thank you!!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 53 members 4,918 guests
Please welcome our newest community members: