provoke new line in business central like FORMAT(CR) + FORMAT(LF) in Nav
ivancito86
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!.
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!.
0
Answers
-
If you send the e-mail as html, you should use html line break ("<br>") instead of CRLF1
-
Thank you for the response, It's works.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
