Unable see 'Employee Number' in the 'Opened for' & 'Subject Person' fields on the HR Case creation UI Page

Abhinandan Pati
Giga Guru

I would like to see 'Employee Number' while searching for users in the 'Opened for' and 'Subject Person' fields present on the 'Case Details' section of HR case creation UI page: 'case_creation'. I have referred below links and updated the method '_addReferenceProperties' in 'hr_CaseCreation' script include.

https://community.servicenow.com/community?id=community_article&sys_id=3b592ed1dbd908941cd8a345ca961...

https://community.servicenow.com/community?id=community_question&sys_id=d486d269db03c8504819fb243996...

I am able to see Email and User ID but for some reason same code snippet is not working for employee number. Here is the code snippet. Please guide if I am missing something here.

if (fieldObject.column_name == 'opened_for' || fieldObject.column_name == 'subject_person') {
            fieldObject.attributes = "ref_auto_completer=AJAXTableCompleter,ref_ac_columns=employee_number";
        }

Thanks,

Abhinandan

@Chuck Tomasi @Göran Lundqvist @Ankur Bawiskar @Robert Duca @nathanfirth 

5 REPLIES 5

Hi Ankur,

I've documented all steps on this article: HR Case Creation - Search on Opened for and Subject person

Thank you,

Ludijor Barros