Redirect to Service Operations Workspace while opening the Agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2023 04:52 AM
Hi Everyone,
Can anyone please help me on how to achieve this i.e., while opening the agent workspace url(/now/workspace/agent/home) the landing page need to redirect to another url(/now/sow/home).
Thanks,
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 06:05 AM
Yes @Sarat_Mongam
We can achieve this by writing the UI Script, PFA
Create a UI script for that
1. Go to UI scripts
2. Click on new
3. On the script use:
(function() {
if(top.window.location.href.indexOf("workspace/agent/home") > -1) {
top.window.location = '/now/sow/home';
}
})();
4. Save
5. Now, if the user goes to agent workspace that will be directing to SOW.
Thanks,
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 12:28 AM
Hi Mahesh,
Thanks for the response. The UI script works but if you restrict access using ACL and still have the UI script you suggested, it takes access users to 403 page and the re-direction wont work. Did you face this scenario. If yes, is there a best way of re-directing the users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 06:29 AM
Doesn't works for me, as UI script didn't fired from the workspace, works fine within other forms. If you select the UI Type as All Global will be unchecked. Works only on UI Type as "Desktop" and UI scripts will not work on workspaces for UI type as Desktop.