knowledge articles UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 06:43 AM
Hi Team, can anyone help me please
I have created a custom UI action on knowledge table. I required to give the kb number in URL path. But here always picking the expired article.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 02:51 AM
that's what I mentioned you can use GlideRecord and get article which is not retired and pass the sysId
this link will require sysId and not number
var knowLink = instance + "/now/sow/kb_view/kb_knowledge/" + number; // Construct the URL
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 12:34 AM
Hi @Vinya Jakkula ,
In your code, you are using var knowLink = instance + '/' + sys_id; which takes the sys_id of the knowledge article that can result in pulling out the expired version of the article. If you wish take only the latest version of the article then you can point to the KB number in the URL instead of the sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 12:44 AM
I have done already but knowledge record not found error getting: