Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Line Break in Mail script

dpi
Kilo Contributor

Hi ,

My issue is related to Mail script . i need to Print the Following text along with water mark , But i need space of 2 lines after this text . i have tried with the Following for the desired output

template.print()

template.space()

<br/>

<p/>

\n and others

But the output shows like   Please let us know why you are very satisfied: :undefinedRef:MSG20671352

var body2 = "Please let us know why you are very satisfied: + '<br/>' + email.watermark;

can some one suggest me how to break the line after the text "Please let us know why you are very satisfied:"

desired output is like :

"Please let us know why you are very satisfied: <user will enter comments here>

email.watermark

Thanks

Durgaprasad

18 REPLIES 18

IF so, then why are you using this watermark in that statement.

 

In email you can directly put it as email.watermark wherever you want.

 

I dont understand that usage in var body.


Thanks,
Ashutosh

Bhagya Lakshmi
Mega Guru

Hey,

try with this.

find_real_file.png

 

 

This is working for me I tried with example.

BenG
Tera Guru

Hi,

if \n\n doesn't work you can use '%0D%0A' 
it works for me

 

MADHU-THE-ROOK
Tera Contributor

 

Use,
template.print("Please let us know why you are very satisfied: ");
template.print('<p> </p>');
template.print('email.watermark;');

​