HR Case, Subject Person to include inactive and show more information?

Paul_Allen
Kilo Contributor

Hi Community!

Does anyone know how I change the config in HR SNOW for the HR Case field 'Subject Person;

Current - Shows only ACTIVE users and in the popup shows 'First Name' 'Surname' 'Email Address'

I'd like - Shows both ACTIVE and INACTIVE users and in the popup shows 'First Name' 'Surname' 'Job Title'

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to update reference qualifier of Subject Person column to include both active and inactive users.

This reference qualifier calls getSubjectPersonUsers() method from hr_Utils script include.

You need to update query in getSubjectPersonUsers() method to return both inactive and active users.

 

Also, to show extra columns in reference lookup, you need to add dictionary attribute

 

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/field-administrati...

 

Regards,

Sachin

Carl Fransen1
Tera Guru

Hi,

For the inactive users, elect the field, right-click and select 'configure dictionary'.  The tab called 'Reference Specification' will show the filter being used, and this is likely only looking for active users, update the filter to remove the active condition.

For the popup changes, Sachin shows the correct place to look for updating this functionality.  Below is one I did for the Configuration Item field, showin gthe original and updated values.  This will provide you a guide to help with updating your as required.

 

Dictionary Entry

Incident/Configuration Item

 

Added to the front of ‘Attributes’ field to add ‘assigned to’, ‘model id’ to the popup list and searchable.  To make it easier to search for the devices assigned to individuals by these values.

 

Old value

ref_ac_order_by=sys_class_name,ref_contributions=task_show_ci_map;show_related_records,ref_ac_columns=sys_class_name,ref_auto_completer=AJAXTableCompleter

 

New value:

ref_ac_order_by=sys_class_name,ref_contributions=task_show_ci_map;show_related_records,ref_ac_columns=sys_class_name;model_id;assigned_to,ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true

 

 

Hope this helps

 

Cheers

Carl.

_Gaurav
Kilo Sage

Hi Paul,

Did you find the solution on this? I have the same requirement.

If you remember the solution/workaround please let me know.