cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User II
Dual Super User II

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

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.
Highlighted
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

Highlighted
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."

Highlighted
Dual Super User II
Dual Super User II

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

Highlighted
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 

Highlighted
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>"

 

 

Highlighted
Dual Super User II
Dual Super User II

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.
Highlighted
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..
Highlighted
Dual Super User II
Dual Super User II

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,883)