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

Cases for subject person related list not visible for some hr cases

VedavalliC
Mega Contributor

Hi
I configured cases for subject person related list, it is visible for some hr cases and not visible for some hr cases.

any reason behind it?
how can we fix?
thank you

2 REPLIES 2

IbrarA
Kilo Sage

Hi @VedavalliC 

 

HRSD hides related lists based on the HR Service, so chances are nothing is broken here, it's just configuration.

 

Two out of box pieces do this between them. A UI Policy called "Hide HR service fields and related lists" hides them as the form loads, then a client script called "Show HR service fields" puts back whatever that HR Service is meant to show. If yours gets hidden and nothing brings it back, you end up seeing it on some cases and not others.

 

Open the HR Service record on a case where it shows and one where it doesn't, and put them side by side. Then open that UI Policy and see whether your related list is in there.

 

Also look at which table each case sits on. COEs extend `sn_hr_core_case`, and anything you add to the parent view won't come down to them.

 

Someone walked through how the policy and the client script work together here: https://www.servicenow.com/community/hrsd-forum/service-table-fields-functionality-not-working/m-p/1...

 

Thanks

ibrar

Ankur Bawiskar
Tera Patron

@VedavalliC 

screenshots please

did you create defined relationship? if yes share the config

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