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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
\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