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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,648)