cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
oappdev Post Patron
Post Patron

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
Dual Super User

Re: Concat a new line on outlook

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
Dual Super User

Re: Concat a new line on outlook

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.
oappdev Post Patron
Post Patron

Re: Concat a new line on outlook

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

Super User
Super User

Re: Concat a new line on outlook

@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
Dual Super User

Re: Concat a new line on outlook

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

oappdev Post Patron
Post Patron

Re: Concat a new line on outlook

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

 

Thank you so much 

oappdev Post Patron
Post Patron

Re: Concat a new line on outlook

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

 

"<br>"

 

 

Dual Super User
Dual Super User

Re: Concat a new line on outlook

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.
oappdev Post Patron
Post Patron

Re: Concat a new line on outlook

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

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

Re: Concat a new line on outlook

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,219)