How can I update the notification email script to take me to the "HR Agent Workspace" view?

Shy
Tera Contributor

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?

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

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)

Best Regards
Aman Kumar

View solution in original post

10 REPLIES 10

suvro
Mega Sage
Mega Sage

In the link  variable you can append

sysparm_view=<view_name>

for exampel

link = link + 'sysparm_view=my_request';

 

Shy
Tera Contributor

Thank you! It rerouted. But not to the screen that I was looking for. Would you happen to know what the link for this screen would be?

 

find_real_file.png

What did you try ?

 

have you tried this

sysparm_view=agent_workspace or 

sysparm_view=workspace

Shy
Tera Contributor

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