How to redirect home page based on csm agents role sn_customerservice_agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hello All,
How to achieve the below requirement in servicenow:
How to redirect csm workspace view home page based on csm agent - role sn_customerservice_agent
and we tried updated on below script on script include "SPEntryPage" but it's not works on impersonate to the user role of ' 'sn_customerservice_agent' redirect to csm workspace view. Please suggest on this:
if (user.hasRole('sn_customerservice_agent') && !user.hasRole('admin') && !redirectURL && !isServicePortalURL)
return "now/cwf/agent/home";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
are you saying based on role users should be redirected to particular landing page of workspace?
you can handle this using Homepage Destination Rule
Homepage Redirect Rules in Next Experience
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Thanks for response..
Yes, based on user role like if user have sn_customerservice_agent role it should be redirect to csm workspace view and if user have itil sole it should be redirect to sow workspace view
Thanks,
Ashok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
please share screenshot where you want user to land
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago