Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Transfer Case Configuration in HR CASE

BiswajitD
Tera Contributor

I want to remove “Request HR Report” and “New Hire Onboarding Journey” from the dropdown list.

Could anyone please let me know how this can be configured?

BiswajitD_0-1788269557882.png

 

 

2 REPLIES 2

sachinvic
Kilo Guru

 

@BiswajitD 

Hi,

Yes, you can remove specific HR Services from the Transfer Case → New HR Service dropdown.

If you want to exclude them from both HR Case Creation and Transfer Case, use Case Creation Configuration (sn_hr_core_config_case_creation) and add conditions under Limit service conditions.

 

If you want to exclude them from the service list returned by getServicesForUser(), the OOTB sn_hr_core.hr Script Include contains an EXCLUDED_SERVICES list. Add the sys_ids of the HR Services you want to exclude to that list.

So, for your example, add the sys_ids of:

  • Request HR Report
  • New Hire Onboarding Journey

This will cause those services to be excluded from the returned list.

 

Note: Updating sn_hr_core.hr means modifying an OOTB Script Include, so I would prefer the Case Creation Configuration approach where applicable. Use the Script Include approach only when you specifically need the exclusion behavior provided by EXCLUDED_SERVICES.

ramonbotelh
ServiceNow Employee

You can create an HR condition for the services, related to the subject person on the Transfer Case popup. To hide the services, you can create an HR condition that no one will pass.