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 / Line Break not wo...
Power Apps
Answered

Line Break not working for email.

(0) ShareShare
ReportReport
Posted on by 40

Hi all, 

 

I am using the Gmail connector to send an email from my Powerapps. I have found that I need to use <br> to get my text onto a new line but for some reason this is not working (RED LINE OF DEATH APPEARS), screenshot attached. 

 

Can anyone shed any light onto why this is happening. 

 

Many thanks

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @mrjrobinson 

    I don't think you can use the line break tab in that way because PowerApps does not recognize the HTML tags in that context.  Try using Char(13) to do a line break instead like I have shown below.  It does the exact same thing as <br>.

     

    \Capture.PNG

     

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

     

  • mrjrobinson Profile Picture
    40 on at

    Great stuff, thanks for coming back. 

    That didnt work. I have added this in. I dont receive an error now however when I send the email its all on 1 line still. 

     

    Many thanks

  • Verified answer
    timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    Hi @mrjrobinson 

    The reason for the error is because the <br> tag needs to be enclosed in double quotes. The code would look like this..

    ThisItem.Member_x0020_Name & "<br>" & "Here is your Membership..."

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard