How to redirect home page based on csm agents role sn_customerservice_agent

ashok17
Tera Contributor

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";

7 REPLIES 7

Ankur Bawiskar
Tera Patron

@ashok17 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

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.

@ashok17 

please share screenshot where you want user to land

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Please find attached landing home pages in the csm and sow workspace view