Hide Offboarding case from My Requests in Employee Center for subject person

GhitaB
Tera Contributor

I’m trying to hide Offboarding HR cases from the Subject Person in Employee Center → My Requests, only when the user is an external worker (contingent worker / subcontractor) based in Spain. HR Criteria and COE configuration are not working, as the case is still visible in My Requests. From my analysis, the My Requests list is populated by an OOTB Script Includethat retrieves all HR cases regardless of HR Criteria. I would like to understand the correct and supported way to exclude these Offboarding cases from the Subject Person in this specific scenario (Spain + external), without impacting other users.

GhitaB_0-1768989385483.png

 

11 REPLIES 11

@GhitaB 

I believe you should use the reverse condition so that users who are not spain and consultant see it

If user doesn't satisfy then they don't see

[IS NOT] Spain

AND

[IS NOT ONE OF] Consultant/Other 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GhitaB_2-1768994089381.png

 

GhitaB_1-1768994071855.png

i ve did it but it still showing on the portal

 

@GhitaB 

how is the behavior in native?

when you login with Spain user then visit HR Cases in native using sn_hr_core_case.LIST

what happens?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GhitaB_0-1768998445401.png

 

Unique45
Mega Sage

Hello @GhitaB ,

You need to make changes in below OOB script includes then:

1) The Script include called within the filter: 

Unique45_1-1768991976571.png

 

2) The script include called within first script include.

Unique45_0-1768991915917.png

 

 

Please mark correct/helpful if this helps you!