Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
\n new line character is not being picked up in Suitescript
Why does'nt the following code insert a new line character (\n) in the body of email message
PDFfile = nlapiPrintRecord('TRANSACTION', invoiceRec.getId(), 'PDF', null);
MsgHeader = 'Hi ' + contactRec.getFieldValue('firstname') + '\n\n';
MsgFooter = 'Regards\n\n' + salesrepRec.getFieldValue('addrtext') + '\n\n' + salesrepRec.getFieldValue('phone');
Msg = MsgHeader + msg30daysoverdue + MsgFooter;
nlapiSendEmail(invoiceRec.getFieldValue('salesrep'), 'x@a.com;', 'Your Invoice is OverDue', Msg, null,null,null,PDFfile);
The \n in the string variables above is not replaced with new line in the output. I do'nt know, Why?
0