html in email script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 12:38 AM
Hello
How to fetch HTML field value of knowledge article in email script
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 01:43 AM
Hi @harry24 ,
Try the below in background script, modify it according to your requirement:
var grKnowledgeBody = new GlideRecord("kb_knowledge");
grKnowledgeBody.get('c85cd2519f77230088aebde8132e70c2');
grKnowledgeBody.info(new GlideSPScriptable().stripHTML(gr.text));
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 01:50 AM
not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 01:45 AM
@harry24 can you please provide more details or provide screenshots to understand the requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 01:49 AM
you can include that field using this syntax, what didn't work? why to use email script if the field is on same table as that of notification
${fieldName}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader