cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nopy4uk
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
Jay-Encodian
Community Champion
Community Champion

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
Jay-Encodian
Community Champion
Community Champion

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,326)