Skip to main content

Notifications

Community site session details

Community site session details

Session Id : CDBBJougMz09CyGg8Aiuaj
Power Apps - Building Power Apps
Answered

Char (10 and Char (13))

Like (0) ShareShare
ReportReport
Posted on 8 Jan 2019 11:26:02 by 60

I’m using PowerApps to send an email receipt of a request form. I have been trying to use Char (10) and Char (13) to create a line break within my string but it doesn’t take it. Any ideas? 

Char.PNG
Categories:
  • Community Power Platform Member Profile Picture
    on 27 Oct 2021 at 07:52:17
    Re: Char (10 and Char (13))

    Thank you, this is working! 😊

  • Community Power Platform Member Profile Picture
    on 24 Jun 2020 at 16:43:37
    Re: Char (10 and Char (13))


    Hello,

    I am researching how to format the text that will be sent by email. I believe this post can help me, but I don't know how to start. I'm trying to organize the data below.

     

     

    SubmitForm(EditForm1) &
    Office365Outlook.SendEmail(EmailGestor;"Nova atualização CIMATEC PRO"; "Olá Gestor, veja os detalhes de cliente em prospecção:" & ThisItem.Empresa & "" & ThisItem.'Tipo de negócio' & ThisItem.'Perfil do cliente' & ThisItem.Anotações & ThisItem.'Data próximo encontro') & 
    Office365Outlook.SendEmail(EmailConsultor;"Nova atualização CIMATEC PRO"; "Olá Gestor, veja os detalhes de cliente em prospecção:" & ThisItem.Empresa & ThisItem.'Tipo de negócio' & ThisItem.'Perfil do cliente' & ThisItem.Anotações & ThisItem.'Data próximo encontro') & Navigate(DetailForm1)

     

     

    Update;

     

    I woke up until I did it!

     

    SubmitForm(EditForm1) & Office365Outlook.SendEmail(
     EmaildoGestor;
     "Nova atualização CIMATEC PRO";
     "Olá " & (DataCardValue43) & "<p><b>Nome da empresa:</b></p> " & ThisItem.Empresa & "<p><b>Tipo de negócio:</b></p> " & ThisItem.'Tipo de negócio' & "<p><b>Perfil do cliente:</b></p> " & ThisItem.'Perfil do cliente' & "<p><b>Anotações:</b></p> " & ThisItem.Anotações; {IsHtml: true}) & Office365Outlook.SendEmail(
     EmailConsultor;
     "Nova atualização CIMATEC PRO";
     "Olá " & (DataCardValue41) & "<p><b>Nome da empresa:</b></p> " & ThisItem.Empresa & "<p><b>Tipo de negócio:</b></p> " & ThisItem.'Tipo de negócio' & "<p><b>Perfil do cliente:</b></p> " & ThisItem.'Perfil do cliente' & "<p><b>Anotações:</b></p> " & ThisItem.Anotações;
     {IsHtml: true}
    )

     

    Thank you in advance!

  • Community Power Platform Member Profile Picture
    on 24 Jun 2020 at 16:42:04
    Re: Char (10 and Char (13))


    Hello,

    I am researching how to format the text that will be sent by email. I believe this post can help me, but I don't know how to start. I'm trying to organize the data below.

     

    SubmitForm(EditForm1) &
    Office365Outlook.SendEmail(EmailGestor;"Nova atualização CIMATEC PRO"; "Olá Gestor, veja os detalhes de cliente em prospecção:" & ThisItem.Empresa & "" & ThisItem.'Tipo de negócio' & ThisItem.'Perfil do cliente' & ThisItem.Anotações & ThisItem.'Data próximo encontro') & 
    Office365Outlook.SendEmail(EmailConsultor;"Nova atualização CIMATEC PRO"; "Olá Gestor, veja os detalhes de cliente em prospecção:" & ThisItem.Empresa & ThisItem.'Tipo de negócio' & ThisItem.'Perfil do cliente' & ThisItem.Anotações & ThisItem.'Data próximo encontro') & Navigate(DetailForm1)

     

    Thank you in advance!

  • v-xida-msft Profile Picture
    on 10 Jan 2019 at 06:59:09
    Re: Char (10 and Char (13))

    HI @Mac,

    The Char(10) and Char(13) both return a ASCII character, which would not work in HTML code.

    I agree with @timl's thought almost, please consider take a try to replace the Char(13) or Char(10) within the email body with "<br/>" html tag:7.JPG

     

    Best regards,

    Kris

  • Verified answer
    timl Profile Picture
    34,978 Super User 2025 Season 1 on 08 Jan 2019 at 12:30:27
    Re: Char (10 and Char (13))

    Hi @Mac

    The HTML tag for a line break is <br>. If you replace Char(13) with "<br>", that should solve your problem.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard