Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Display HR Service Table Fields on Generated Record

leahdany
Giga Guru

I am trying to display fields for an HR service on the generated record by adding said fields to the HR Service record in the "HR Service Additional Information" tab and the "Service table fields" field. I am doing so in following step 3 in this Community answer, but the fields are not showing on the generated record.

Here's my "HR Service Additional Information" tab for the HR Service.

find_real_file.png

Yet when I look at the case this service generated I'm not seeing these fields. What do I need to do to get these to show?

find_real_file.png

Bottom of form:

find_real_file.png

1 ACCEPTED SOLUTION

leahdany,

Okay, I see what you were saying now, sorry I misunderstood. 

On the HR case table, you can find a UI policy named Show HR service fields on load, in the script part of this UI policy setServiceDisplay function controls the visibility of the HR Service fields. [child and parent fields]

Counter attacking this UI policy, another UI policy named Hide HR service fields and related lists is responsible for Hiding the HR Service fields. [It only takes parent HR service fields, not the Child]

Use case 1: if you create the fields on Child case Tables, the field never gets hidden 

1. created a custom column test1 to the HR workforce Admin Case table,[child table]

2. Configured the Service Table fields in the HR Service with test1 field

3.  test1 field is VISIBLE on the HR workforce Admin Case table when I open it.[No UI policy to hide it as UI policy:Hide HR service fields and related lists only hides Parent table fields]

Use case 2: if you create the fields on Parent case Table, the field gets hidden and displayed properly

1. created a custom column test2 to the HR Case table,[parent table]

2. Configured the Service Table fields in the HR Service Without test2 field

3. test2 field is HIDDEN on the HR workforce Admin Case table when I open it.[UI policy:Hide HR service fields and related lists]

4.  Configured the Service Table fields in the HR Service With test2 field

5. test2 field is VISIBLE on the HR workforce Admin Case table when I open it.[UI policy:Show HR service fields on load]

Something Silly: check the Form layout to see if the fields are configured to exist on the form in the first place.

Thank you,

Aman Gurram

View solution in original post

14 REPLIES 14

ARG645
Tera Guru

leaddany,

Below is what I understood from what you are trying to describe. 

1. You have set some values for fields in HR Service Table [say for a particular service] under HR Service Additional Information.

 The fields are service_table_fields and subject_person_related_lists 

2. Now, if a HR case is created for this HR Service, you are expecting to see the HR Service Additional Information tab with the fields service_table_fields and subject_person_related_lists  populated with the values you have set in the HR Service record in Step 1. 

If what I have described is true, then you are trying to connect the dots that dont exist at all. 

HR Services has service_table_fields and subject_person_related_lists fields. Where as the HR Case table[say the parent or any childlike workforce admin table] doesn't have those fields at all. So you cannot expect these fields to appear in the HR case. You might see fulfillment_instructions that is common between HR case and HR Service, which might have given you an impression that HR Service Additional Information fields would also be present in HR Case. 

I think you need to create these fields on the HR case Table[parent or the child table where you want the fields to be present] and then do some scripting to populate these.

Thank you,

Aman Gurram

Hi Amun,

I'm not expecting to see a tab from the HR Service record on the case record. I'm trying to get the OOB functionality which shows the fields for that HR Service on the cases for that service.

Not sure if such OOB functionality even exists. Is this OOB functionality to show fileds from HR service to HR case documented some where ?

The guy who answered the question in my original post works for SN and responds to a lot of HR questions. In a separate thread he said a lot of this functionality is not yet documented.

Here’s that thread: https://community.servicenow.com/community?id=community_question&sys_id=325247eddb98dbc01dcaf3231f9619ea&view_source=searchResult