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.
Than you Paulie this did it! and also thank you very much Caspar!
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 😘
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.
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
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional