Hi
Is it possible to add line breaks in power automate? I have created a Forms answer and there is a question with a long line for text, the user has been instructed to end the line with a ",", I would therefore like to break the lines in the power automate so that when the flow sends me an email with new answers, the answers should be filtered according to this way.
Answer 1
Answer 2
Answer 3
Today I get these answers: answer 1, answer 2, answer 3.
Solved! Go to Solution.
Hey,
you could create a variable (initialize variable action) named "NewLine", Type "String" and Value is just a new line (press enter once inside the text field)
Then you can use the replace() function to replace all commas with the NewLine variable.
Expression used:
results in this:
let us know if this works for you!
cheers
Because your intended output is an email, you want a BR tag, not a new line. Take a look at the following:
This produces the output:
answer 1<br /> answer 2<br /> answer 3
Which would work well in your email.
The expression I used is:
replace(outputs('Compose'), ',','<br />')
You would need to replace: outputs('Compose') with the response from your form.
Blog: tachytelic.net
YouTube: https://www.youtube.com/c/PaulieM/videos
If I answered your question, please accept it as a solution 😘
Hey,
you could create a variable (initialize variable action) named "NewLine", Type "String" and Value is just a new line (press enter once inside the text field)
Then you can use the replace() function to replace all commas with the NewLine variable.
Expression used:
results in this:
let us know if this works for you!
cheers
Hi Caspar
Thank you for the answer.
I dont understand what you mean by "change the 'outputs('Compose_-_Anwer')' part with the dynamic value of the answer of the form..."
I will send you my flow and you can see what i have done wrong since its not formating.
Please see pictues below.
Because your intended output is an email, you want a BR tag, not a new line. Take a look at the following:
This produces the output:
answer 1<br /> answer 2<br /> answer 3
Which would work well in your email.
The expression I used is:
replace(outputs('Compose'), ',','<br />')
You would need to replace: outputs('Compose') with the response from your form.
Blog: tachytelic.net
YouTube: https://www.youtube.com/c/PaulieM/videos
If I answered your question, please accept it as a solution 😘
Than you Paulie this did it! and also thank you very much Caspar!
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
12 |
User | Count |
---|---|
127 | |
53 | |
38 | |
26 | |
21 |