Hey,
I'm trying to create a flow that get a .txt file content and sends it as an email. The problem is that the email I'm getting appears in one line, without the new lines in the .txt file.
how can I split the string to multiple lines?
Thank you.
Announcements
Hey,
I'm trying to create a flow that get a .txt file content and sends it as an email. The problem is that the email I'm getting appears in one line, without the new lines in the .txt file.
how can I split the string to multiple lines?
Thank you.
That did it! thank you!
@ShayGur when you paste the content of txt file on email body, try to append to every rows a new variable as the following one
The value is a simple return character.
Hi @ShayGur
You need to write an expression to replace new line characters with <br> tag. Pls refer the below example:
Expressions are written in the expression box as fx formulas (highlighted in above screenshot).
Expression used in the above example:
replace(outputs('Compose_2'),decodeUriComponent('%0A'),'<br>')
Pls replace 'outputs('Compose_2')' with actual variable used in your flow.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks
It's a manually written .txt file, I just write a day summary to send to my boss. Each task completed is a new line, but it appears in one line in the email sent by the power Automate.
@ShayGur could you please explain better the implemented flow?
What do you do to insert the new line character to the txt file?
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1