web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Concat a new line on o...
Power Apps
Unanswered

Concat a new line on outlook

(0) ShareShare
ReportReport
Posted on by 901

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

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    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.

  • oappdev Profile Picture
    901 on at

    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

  • mdevaney Profile Picture
    29,989 Moderator on at

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

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    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)

  • oappdev Profile Picture
    901 on at

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

     

    Thank you so much 

  • oappdev Profile Picture
    901 on at

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

     

    "<br>"

     

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    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.

  • oappdev Profile Picture
    901 on at

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

    Category: Test | SubCategory: Test2 | ProductName, etc..
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    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))
  • oappdev Profile Picture
    901 on at

    Thanks again for all your help @Pstork1   I finally got it working

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard