sn-record-picker fails to search when impersonating some users

weverton gracin
Tera Contributor

I'm having some trouble. The sn-record-picker is not working properly. In some cases, when impersonating a user, it works 100%, giving me names with the group of characters that I have typed. However, when impersonating other users, it displays all the user's related alphabetically, but when I search for a name like 'Jhon', the search doesn't work properly even though 'Jhon' is in the selection. Has anyone else faced this problem?

 

<sn-record-picker field="collaborator" table="'sys_user'" display-field="'name, user_name'"
display-fields="'user_name'" value-field="'sys_id'" search-fields="'name,user_name'"
default-query="defaultQueryCollaborator" placeholder="Type name or ID">
</sn-record-picker>
1 REPLY 1

Rushi Savarkar
Kilo Sage

Hello @weverton gracin 

Please refer to the link below

https://www.servicenow.com/community/developer-articles/using-sn-record-picker-in-servicenow-service....

If my response helped you, please accept the solution and mark it as helpful.
Thank You!