- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 11:13 AM - edited ‎02-27-2024 11:19 AM
Hi
How can agents be redirected to the HR Agent Workspace landing page when they log in to the instance, so that the workspace is their first page? Also, how can they be redirected to "/now/hr/agent/home" when they click on Homepage at the top left corner? These redirects should be controlled via user rules, ensuring that each HR agent with a basic HR role is redirected to the HR Agent Workspace.
The user clicks homepage logo , then should be redirected to /now/hr/agent/home
and see HR agent workspace. The same landing page user should see when they log in to the instance.
I tried to modify script include SPEntryPage, getLoginURL() but it still doesn't work.
Has someone worked on similar use case?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 11:58 AM
Hi @miro2 ,
I am not sure SPEntrypage work on agent workspace. But try below approach:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 12:08 PM
@Sumanth16
I also found information that the script including 'SPEntryPage' is dedicated for Service Portal only.
In the meantime, I found a way to redirect agents to the HR agent workspace using this script include SPEntryPage. This modification works, but I forgot to create the system property glide.entry.first.page.script and set it to new SPEntryPage().getFirstPageURL(). Now, users with the HR role will be redirected to the workspace when logging into the classic instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 12:10 PM
Hi @miro2 ,
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:26 AM
I'm marking my post as a solution, so that others will understand what was missing in my initial implementation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 12:12 PM - edited ‎02-27-2024 12:41 PM
@Sumanth16
I'm still looking for a solution to redirect agents to '/now/hr/agent/home' when they click on the homepage logo.
Any suggestions?
Edit:
I found system properties "glide.banner.image.url" to control URL used when clicking the banner image and property "glide.login.home". But my question is how to use it only for users with HR basic role? I don't want redirect all users to workspace.