- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2024 06:15 PM
We're using the Action utility with ServiceNow Core as the Spoke and Send email as the Action. We've found out how to populate contents in the email but now I'd like to format it. Initially, apply a font to it and be able to bold or italicize font where needed. I'd also like to embed images (i.e., screenshots of error messages, or email signatures).
How can we do this? There's a lot of content online but none of it really speaks to this specific need. I am a novice in JavaScript so plain English is appreciated in this regard 🙂
Solved! Go to Solution.
- 1,273 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 09:30 PM
Hi there,
It's a good practice to avoid using the Send email action. Use the Send notification action instead. Advantage of that is all notifications in one place (the notification table), you can re-use notifications, you can format notifications, etcetera.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 01:50 PM
Hi,
To format your emails in ServiceNow, including applying fonts and embedding images, here are some straightforward solutions:
Formatting Text:
- Use HTML tags for formatting. For example, "<b>" for bold and "<i>" for italic.
- Wrap the text you want to format with these tags.
Applying Fonts:
- Sorry, you can't choose specific fonts in ServiceNow emails.
- Stick with standard fonts like Arial or Times New Roman.
Embedding Images:
- Upload your images to ServiceNow first.
- Then, use "<img>" tags in your email content to include them.
- Make sure the "<img>" tag points to the URL of the uploaded image.
JavaScript Not Needed:
- Don't worry about JavaScript here; HTML does the job.
- HTML is simple and effective for formatting in ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 04:42 PM
Hi VarunaS - you mentioned Ariel or Times New Roman, so how can I make it Ariel if it's Times New Roman?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 02:41 AM
@Keszia you won't get an answer here. This user is only posting AI generated answers and doesn't have a clue on how it really works.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 06:59 PM
@Keszia We have <b> and <i> tags for bold and italicize the font respectively.
From your screenshot it looks like the script can return HTML hence I would suggest to keep your text between <b> and </b> for the texts you want to keep it bold and the text that needs to be in italics should be kept in between <i> and </i> tags.
e.g. return "<b>I need this text bold</b><i>I need this text in italics</i>"
Let me know if this helps