Ui action in knowledge article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 04:54 AM
Hi Team,
Can anyone help me
I have created custom ui action on knowledge table. But is getting knowledge record not found.iam trying to redirect to workspace.
- function CopyKnowWorkspace() {var number = g_form.getValue('number');var instance = "https://" + parent.location.hostname; // Get the instance hostnamevar knowLink = instance + "/now/sow/kb_view/kb_knowledge/" + number; // Construct the URLif (number) {// Copy the link to clipboardcopyToClipboard(knowLink);alert("Copied to clipboard: " + knowLink);} else {alert("Knowledge article number is not available. Unable to generate link.");}}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 07:02 AM
Hello @Vinya Jakkula
below is Sample URL of Knowledge Article opened in an Workspace.
https://dev******.service-now.com/now/sow/kb_view/kb_knowledge/c85cd2519f77230088aebde8132e70c2
https://dev******.service-now.com/ : Instance URL
/now/sow : your Redirection to Workspace
kb_view/kb_knowledge : Knowledge Article View
c85cd2519f77230088aebde8132e70c2 : sys_id of your article
you are redirecting to wring URL Dynamically.
Thanks and Regards
Gaurav Shirsat