- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 06:43 AM
When I click on "Take me to the Case" it takes me to the ITIL view of the case and not the "HR Agent Workspace" view.
How can I update the notification email script to take me to the "HR Agent Workspace" view?
Solved! Go to Solution.
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 06:52 AM
Hi,
If you look closely, you are getting the link from a script include, which is line 2.
I would suggest look into it to better understand how these works OOB
Script include: sn_hr_sp.emailUtil and getLink() and _shouldGoToServicePortal() functions.
Right now, there are certain conditions that it is checking to open the record.
I think it will be better to stick to OOB, else you can by default create a link of yourself and add using a new email template.(refer to _getPortalLink() within the same script include)
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 06:48 AM
In the link variable you can append
sysparm_view=<view_name>
for exampel
link = link + 'sysparm_view=my_request';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 09:27 AM
I have tried the following:
var link = new sn_hr_sp.emailUtil(current, email_action).getLink();
link = link + 'sysparm_view=agent_workspace';
var link = new sn_hr_sp.emailUtil(current, email_action).getLink();
link = link + 'sysparm_view=workspace';
var link = new sn_hr_sp.emailUtil(current, email_action).getLink();
link = link + 'truesysparm_view=agent_workspace';
var link = new sn_hr_sp.emailUtil(current, email_action).getLink();
link = link + 'truesysparm_view=workspace';