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

Thank you Jay! It worked!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,351)