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}
);
Yes, that worked!!
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}
);
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.
WarrenBelz
146,765
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional