Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
click_on_qlik
Partner - Contributor II
Partner - Contributor II

How to insert new line in a SQL text message ?

 

Hi

In the data load editor I want to send a mail , and i want to add a \n (newline ) in the text field message,  but it does not work 

here is the code

 

SELECT status,
result
FROM SendEmail
WITH PROPERTIES (
to='$(Email)',
subject='Result monitoring',
message='The  app name is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

NEWLINE

xxxxxxxxxxxxxxxxxxxxxxxx ',
html='true',
fromName='aaaaa',
fromEmail='bbbbbbbbbbbbbbbbbbbb',
cc='',
bcc=''
);

Labels (3)
1 Reply
Aasir
Creator III
Creator III

CHAR(13) || CHAR(10) is used to represent a new line.

SELECT status,
result
FROM SendEmail
WITH PROPERTIES (
to='$(Email)',
subject='Result monitoring',
message='The app name is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' || CHAR(13) || CHAR(10) ||
'xxxxxxxxxxxxxxxxxxxxxxxx',
html='true',
fromName='aaaaa',
fromEmail='bbbbbbbbbbbbbbbbbbbb',
cc='',
bcc=''
);