Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Trying to add a Carriage Return in Email Body

Like (0) ShareShare
ReportReport
Posted on 19 Aug 2022 18:53:25 by 10

Newbie here... I am trying to insert a carriage return in a hardcoded email, but the Char(13) is not working, I also tried Char(10), Split(), and <br>, all to no avail. You can see in the code below where I am wanting the carriage return. Please help!

 

Office365Outlook.SendEmailV2(
LookUp('Project Data',Title = RREWInput.Selected.Result).'RREW Manager Email', "Load Quality Audit for " & ProjectInput.Selected.'Store Number' & " on " & Today(), "Hi Team, " & Char(13) & "On" & Today() & " your load was audited for project " & ProjectInput.Selected.'Store Number' & ". Your load was rated as " & ConditionSelection.Selected.Result & ". " & "The following reasons were listed to explain the raiting:" & Char(13) & ActualSelection.Text & Char(13) & "Please see photo's attached", {Importance: "High", Attachments: LoadImages}
);

  • Madhatter071 Profile Picture
    10 on 19 Aug 2022 at 19:29:38
    Re: Trying to add a Carriage Return in Email Body

    Yes, that worked!!

  • Verified answer
    Pstork1 Profile Picture
    66,091 Most Valuable Professional on 19 Aug 2022 at 19:22:59
    Re: Trying to add a Carriage Return in Email Body

    When you used the <br> did you put it in quotes?

    Office365Outlook.SendEmailV2(
    LookUp('Project Data',Title = RREWInput.Selected.Result).'RREW Manager Email', "Load Quality Audit for " & ProjectInput.Selected.'Store Number' & " on " & Today(), "Hi Team, <br>" & "On" & Today() & " your load was audited for project " & ProjectInput.Selected.'Store Number' & ". Your load was rated as " & ConditionSelection.Selected.Result & ". " & "The following reasons were listed to explain the raiting:<br>" & ActualSelection.Text & "<br>" & "Please see photo's attached", {Importance: "High", Attachments: LoadImages}
    );
  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 19 Aug 2022 at 19:20:36
    Re: Trying to add a Carriage Return in Email Body

    @Madhatter071 

    Your formula should be:

    Office365Outlook.SendEmailV2(
     LookUp('Project Data', Title = RREWInput.Selected.Result).'RREW Manager Email', 
    
     "Load Quality Audit for " & ProjectInput.Selected.'Store Number' & " on " & Today(), 
    
     "Hi Team, <br>
     On" & Today() & " your load was audited for project " & ProjectInput.Selected.'Store Number' & ". Your load was rated as " & ConditionSelection.Selected.Result & ". The following reasons were listed to explain the raiting: <br>" & ActualSelection.Text & "<br>" & "Please see photo's attached", 
    
     {Importance: "High", Attachments: LoadImages}
    );

     

    Also by using the concat shortcut ($), you can change to:

    Office365Outlook.SendEmailV2(
     LookUp('Project Data', Title = RREWInput.Selected.Result).'RREW Manager Email', 
    
     $"Load Quality Audit for {ProjectInput.Selected.'Store Number'} on {Text(Today(), ShortDate)}", 
    
     $"Hi Team, <br>
     On {Text(Today(), ShortDate)} your load was audited for project {ProjectInput.Selected.'Store Number'}. Your load was rated as {ConditionSelection.Selected.Result}. The following reasons were listed to explain the raiting: <br>
     {ActualSelection.Text}<br>
     Please see photo's attached", 
    
     {Importance: "High", Attachments: LoadImages}
    );

     

    I hope this is helpful for you.

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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,765 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard