
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2018 12:59 PM
Hey SN Comm!
I want to try something I believe is doable through client script but need some help with it.
I have 3 HR Services that are specific to Employee Relations Cases
- ER Report
- ER Administrative
- ER Union Grievance
Both 2 and 3, need to be available ONLY when someone within the Employee Relations Group is in the system creating their own Cases. Other than that, ER Report can be available all the time.
I was thinking of an onLoad client script (would need to be hitting the Case Creation Page), to only show ER Report when the user creating a new HR Case IS NOT in Employee Relations Assignment Group (or tie it to a role if need be).
Anyone able to work this out with me on how I could get this done? And, if i could do something other than client script?
Thanks to all in advance,
~Rob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2018 04:25 PM
So the real pain I encountered was, this is a UI page. Even if you modify the reference qualifiers , you will only get it to work on a FORM, not on a UI page.
Achieved it using the Query Business rule on HR services table.
Assign a role to the specific users you want, in my example the role name is "XYZ".
Below is the script
(function executeRule(current, previous /*null when async*/) {
// Add your code here
if(!gs.hasRole("XYZ"))//If the user doesnt have an XYZ role then exclude below HR Services
current.addEncodedQuery("name!=ER Administrative^name!=ER Union Grievance");
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2018 04:30 PM
Could you please let us know if HR Criteria works with User creating the Case using the UI page sn_hr_core_case_creation.do ?
Because the documentation says its only for Subjected Person. But what Rob is trying to achieve is for HR Agents who are trying to create the case.
- Filters HR services based on the Subject person during case creation or transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2020 05:22 PM
I really thought that creating the hr criteria using the Group Member table would work but I can't get it to work. I, too, need to limit an Employee Relations service to just the Employee Relations team and tried this method of creating the criteria and then adding it to the HR Criteria on the service. Now, no one has access to the service and yet the criteria is pulling the right group of people. Has there been any new findings on how to restrict a service to certain agents?