- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 11:11 PM
Hi All,
In my first run script activity have a scratchpad variable(workflow.scratchpad.msgFinal) where i am storing a result. Please refer below
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.
Is this can be achievable only by notification script?
Regards,
Sirraj
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 01:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 11:28 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 11:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 12:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 12:50 AM
Hi Sirraj,
Also when you use notification ensure you set Message HTML; it can have html formatting as Bold, Italic, Color etc
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 12:54 AM
Can i set this in notification activity too?