cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

How to keep new lines from a string variable in email body

Hello community!

I need to collect data from several items on a sharepoint list by condition and then send it via email.

To do that I've introduced a string variable and appending data to it in Apply to each cycle. Data inside the variable have some line breaks.

When I form the mail body I'm able to create a line break directly hitting enter in the text, but when I use the variable - in the mail received I see all the data in one row.

Could you please help me? Or is there a better way to collect data from Apply to each to the mail body?

 

Variable collect

append.JPG

Mail code

mail_code.JPG

Mail data from variable

mail_data.JPG

Mail received - no spaces

mail.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hey @nopy4uk 

Just append a <br> tag, for example:

12.jpg

 And the output:

13.jpg

HTH

Jay

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hey @nopy4uk 

Just append a <br> tag, for example:

12.jpg

 And the output:

13.jpg

HTH

Jay

View solution in original post

Thank you Jay! It worked!

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (104,675)