Options

provoke new line in business central like FORMAT(CR) + FORMAT(LF) in Nav

ivancito86ivancito86 Member Posts: 18
Hi all!

I have these variables.

vBodyLbl1: Label 'Good morning, %1. We attach the invoice number %2.%3We take advantage the occasion for greeting and remember you that you can contact us through the email or telephone.%4Thoughtfully, %5.';
CR: Char;
LF: Char;


I filled it like this:

CR := 13;
LF := 10;
vBody := StrSubstNo(vBodyLbl1, FORMAT(CR) + FORMAT(LF) + FORMAT(CR) + FORMAT(LF), FORMAT(SalesInvoiceHeader."No."), FORMAT(CR) + FORMAT(LF) + FORMAT(CR) + FORMAT(LF), FORMAT(CR) + FORMAT(LF) + FORMAT(CR) + FORMAT(LF), CompanyInformation.Name)


In the translation file I declared like this:

<source>Good morning, %1. We attach the invoice number %2.%3We take advantage the occasion for greeting and remember you that you can contact us through the email or telephone.%4Thoughtfully, %5.</source>

However, when I recive the email, the body of it, it doesn't have any line break.

Somebody can I help me??

Best regards!.

Answers

  • Options
    lyngelynge Member Posts: 85
    If you send the e-mail as html, you should use html line break ("<br>") instead of CRLF
  • Options
    ivancito86ivancito86 Member Posts: 18
    Thank you for the response, It's works.
Sign In or Register to comment.