Hr case creation page

VedavalliC
Tera Contributor

Hi
So while creating hr case we have 

Verify the employee requesting this case page where we enter user name so My user name is Test HR Agent so if i enter Test it is not showing the user to select(it is showing no results found) if i search *hr agent then it is showing to select ,
what is the issue ?

 

2 REPLIES 2

SupriyaWaghmode
Mega Sage

Hi @VedavalliC  ,

 

This behavior is caused by how the search lookup or text indexing is configured in ServiceNow for your user or HR profile tables. 
When you search for "Test" and get no results, but searching for *"hr agent" work.
 

If my response helped, please mark it as the accepted solution so others can benefit as well. 

 

Thanks & Regards ,

Supriya Waghmode 

sanjaygupta
Tera Guru
Typing a bare name uses a starts-with search, while a leading * switches it to contains. Reference-style searches behave this way on the platform, and community guidance says a * before the text gives a contains search. If “Test” returns nothing but “*hr agent” works, the stored name probably does not start with “Test” the way it looks on screen.

Check these in order:

  • Open the user record and look at the Name, First name and Last name fields. A leading space, a prefix or different ordering in the stored value would explain it. Try typing the first few letters of whatever the Name field actually begins with.
  • Open the Case Creation Configuration for your HR service and review the employee search filter. The documentation says the limit user search filter applies to the employee search, and community members have asked this about the same screen.
  • Confirm the user is active and has an HR profile. Community replies list the HR profile as a first check. One Australia documentation note says you can search for inactive users, while an earlier release did not allow it, so confirm what your release does.
  • Check whether the same search works in the older HR Agent Workspace or the Core UI. A community report describes the problem only in Agent Workspace for HR Case Management.

Teaching agents to type * before a partial name is the safe workaround. The sys_user.autocomplete.contains user preference can make user searches use contains by default. Community experts warn it changes behavior across the whole instance and can hurt performance, so avoid it unless the team agrees.

Sources: