cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate V
Advocate V

Concat a new line on outlook

Happy Tuesday Power Apps Community.

 

i'm using the following Concat ( ) function. l'm i missing something ?

 

Office365Outlook.SendEmail("myemail@email.com","New Pitney Bowes","Now()";Concat(PitneyBowesCollection,DataCardValue7 & "; " &DataCardValue8 & ";" &DataCardValue1 & ";" & Category & "; " & SubCategory & "; " & ProductName & "; " & Quantity, Char(13)))

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

Sorry, I wasn't clear enough.  You need BOTH a carriage return and a line feed.  So don't replace the one with the other.  Use both Char(13) & Char(10)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

10 REPLIES 10
Dual Super User III
Dual Super User III

Char(13) is a carriage return.  But I think what you are actually looking for is a carriage return with a line feed.  That would be Char(13) & Char(10). Char(10) is the actual linefeed.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you so much for the quick reply @Pstork1 

 

i change it to  Char(10)

Office365Outlook.SendEmail("myemail@email.com","New Pitney Bowes","Now()";Concat(PitneyBowesCollection,DataCardValue7 & "; " &DataCardValue8 & ";" &DataCardValue1 & ";" & Category & "; " & SubCategory & "; " & ProductName & "; " & Quantity, Char(10)))

 

 

 Email.PNG

@oappdev 

Personally, I like to use HTML line breaks in email.

"<br>"


I think you'd do it like this.

Office365Outlook.SendEmail("myemail@email.com","New Pitney Bowes","Now()";Concat(PitneyBowesCollection,DataCardValue7 & "; " &DataCardValue8 & ";" &DataCardValue1 & ";" & Category & "; " & SubCategory & "; " & ProductName & "; " & Quantity & "<br>"))

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Dual Super User III
Dual Super User III

Sorry, I wasn't clear enough.  You need BOTH a carriage return and a line feed.  So don't replace the one with the other.  Use both Char(13) & Char(10)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

That did the trick @Pstork1  Sorry on my first cup of coffee. 

 

Thank you so much 

@mdevaney Now that i got it working. I will also try that approach 👍

 

"<br>"

 

 

Dual Super User III
Dual Super User III

I prefer the "<br />" also, but that does require that the email be HTML.  If you are in an environment where plain text emails are enforced then the Char(13)Char(10) will still work.  So sometimes its necessary.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@mdevaney @Pstork1  Last question how can i add a Title to it

Category: Test | SubCategory: Test2 | ProductName, etc..
Dual Super User III
Dual Super User III

There is no way to do it automatically.  You just have to add those labels to the Concat statement you are already using.

Concat(PitneyBowesCollection,DataCardValue7 & "; " &DataCardValue8 & ";" &DataCardValue1 & "; Category:" & Category & "; SubCategory:" & SubCategory & "; ProductName:" & ProductName & "; Quantity:" & Quantity, Char(13)Char(10))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (10,312)