- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 11:21 PM
Hi Everyone,
I want to hide a certain HR service in the Transfer Case, both in Native UI and HR Agent Workspace.
Any help is appreciated.
Thanks,
Srinath
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 03:00 AM
Ah! my bad I forgot to share the solution for HR Agent Workspace.
Caution: In order to achieve the same functionality on HR Agent workspace, you need to make some changes within an OOTB script include hr_CaseTransferAjax. Any changes here would mean you would need to take care of any changes during upgrades by manually merging them in this script include.
For now let's proceed with how this can be achieved in workspace.
When we closely look at the workspace client script for Transfer case UI Action we find the following.
This UI Action calls an OOTB script include hr_CaseTransferAjax to fetch the possible list of services. When we further drill down in this script include we find a method
On line number 45, replace the existing line with the following.
var oldServices = new sn_hr_core.hr_CaseCreation().getServicesForUser(subjectPerson || '', true);
var services = new sn_hr_core.HRServiceV2().getUpdatedHRServices(oldServices);
rest of the code should remain intact.
Save the changes and test it on workspace this time the excluded services will not appear.
This is how the service dropdown look when the "HR Accounts Inquiry" service is not exlcuded.
This is how it looks when it is excluded.
Hope finally this help you achieve your goal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 02:04 AM
Hi Sandeep,
I implemented the above solution and it works great, but it is only working in Native UI. I am able to see those HR service that should be hidden in the HR agent workspace's transfer case. Do I have to make any changes to your Script include and Transfer case UI page to make it reflect in HR Agent workspace too? I have to hide it from both HR agent workspace and Native UI. I am attaching the screenshot of transfer case in HR Agent workspace which was showing even after I followed your code and instructions.
Thanks,
Srinath

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 03:00 AM
Ah! my bad I forgot to share the solution for HR Agent Workspace.
Caution: In order to achieve the same functionality on HR Agent workspace, you need to make some changes within an OOTB script include hr_CaseTransferAjax. Any changes here would mean you would need to take care of any changes during upgrades by manually merging them in this script include.
For now let's proceed with how this can be achieved in workspace.
When we closely look at the workspace client script for Transfer case UI Action we find the following.
This UI Action calls an OOTB script include hr_CaseTransferAjax to fetch the possible list of services. When we further drill down in this script include we find a method
On line number 45, replace the existing line with the following.
var oldServices = new sn_hr_core.hr_CaseCreation().getServicesForUser(subjectPerson || '', true);
var services = new sn_hr_core.HRServiceV2().getUpdatedHRServices(oldServices);
rest of the code should remain intact.
Save the changes and test it on workspace this time the excluded services will not appear.
This is how the service dropdown look when the "HR Accounts Inquiry" service is not exlcuded.
This is how it looks when it is excluded.
Hope finally this help you achieve your goal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 12:41 AM
Good morning everyone .