Create UI action Button in Change Request for KB Article template

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 12:21 AM
Hi Everyone,
We have a requirement for Change Request table.
Whenever user is clicking on UI action button to create Article, it should Redirect to template selector page. and once user click on the appropriate template, Source task should automatically attach to Knowledge Article page along with short description from the change form.
I tried but only things I was able to succeed is to directly open the default Standard template and mapping the field,
But Requirement is to first redirect it to template selector and then add it to Selected template.
Please let me know if you have any suggestions or ideas to make it work.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 12:37 AM
Hi @Community Alums
This seems to be the expected behavior, and they say it works the same way for incidents as well.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 04:27 AM
We tried and were able to make it work in Native UI for Creating in UI Action,
var changeSysId = current.getUniqueValue();
var shortDescription = current.short_description; // Get sys_id of current change
var url = '/kb_knowledge_create.do?sysparm_stack=no&sysparm_interceptor_preference=new';
url += '&&sys_id=-1&sysparm_query=source=' + encodeURIComponent(changeSysId);
url += '^short_description=' + encodeURIComponent(shortDescription);
action.setRedirectURL(url);
But this is not working in Service Operation Workspace, We tried different things but on clicking button, nothing is happening. Can you help on this?