- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2025 11:58 PM
I created export to pdf button and Its not showing in the HR AGENT WORKSPACE
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 01:01 AM
this config worked for me
1) I used incident table and SOW, you can enhance it for HR Agent Workspace
2) I kept that UI action as Form Context Menu and Form button both
3) added client script in script field as well along with workspace client script
4) didn't add any views in "UI Action Visibility" related list
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 12:16 AM
you are using wrong script in workspace client script
it should be this, ensure you give correct workspace view name
function onClick(g_form) {
var url = '/' + g_form.getTableName() + '.do?PDF&sys_id=' + g_form.getUniqueValue() + '&sysparm_view=workspace';
open(url,"_blank");
}
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 12:28 AM
still didnt work for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 12:25 AM - edited 05-05-2025 12:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 12:46 AM
that UI action is visible in other 2 views and not in workspace and hence not visible
ensure that UI action is visible in workspace and then it will start working
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