Link redirection in HR case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi Team,
In HR case creation, native view page link when user bookmarks this below link and tries to create a new HR Case, when must show alert and redirect to workspace link.
Native link:
HR Workspace:
/now/hr/agent/case-creation-page/-1_uid_1/params/query/assigned_toDYNAMIC90d1921e5f510100a9ad2572f2b477fe%5Eactive%3Dtrue%5Estate!%3D20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
So you don't want users to submit case from native?
if yes then disable the left nav module.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
@Ankur Bawiskar , Module already disabled. Rare case if agents would have book marked and use the link we need to redirect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
shared solution for that below.
please check and close the thread.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
This approach worked for me
1) create UI script like this
addLoadEvent(hideButtonsAdd);
function hideButtonsAdd() {
if (document.URL.indexOf('sn_hr_core_case_creation.do') > -1) {
window.location.href = '/now/hr/agent/case-creation-page/-1_uid_1';
}
}
Output:
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
