How to make bold letters in body of the notification message.

Community Alums
Not applicable

Hi All,

In my first run script activity have a scratchpad variable(workflow.scratchpad.msgFinal) where i am storing a result. Please refer below

find_real_file.png

After this run script activity i have a notification activity where i am printing the scratch pad variable in body of the mail. And it should be look like below. Bold & Underline. I have used <b> tag and <u> tag in runscript. But am not getting bold and underline format. 

find_real_file.png

Is this can be achievable only by notification script? 

Regards,

Sirraj

1 ACCEPTED SOLUTION

yahh , tested it can be used, <b> and <u>  can be set using run script activity as well.

lets do one thing, would it be possible if you can break your string and hardcord some text and see if its setting correctly format or not. 

 

View solution in original post

19 REPLIES 19

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sirraj,

As already suggested you need to use mail script to make text bold, italic, underline etc

sharing sample script below

template.print('This is <b>bold</b> text');
template.print('This is <i>Italic</i> text');

Output

This is bold text

This is italic text

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

rahul vishkarma
Kilo Explorer

Hi Siriraj

maybe you have selected the notification content type as plain text. PLease set that to html and then set the bold and try.

Please mark my answer correct and helpful ,If this helps you in any way

Thanks in advance

Saurabh

 

Community Alums
Not applicable

Hi Rahul,

Its a workflow notification activity. I believe content type will not be there in activity. It will be there in notification module.

 

Regards,

Sirraj

Hi Sirraj,

Also when you use notification ensure you set Message HTML; it can have html formatting as Bold, Italic, Color etc

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Can i set this in notification activity too?