I am searching users based on username or email-id in List collector.

Taaha M
Tera Contributor

I have a List Collector field referring to sys_user table, in this field I am trying to search a record either by it's username or by it's mail id.

How can I do this ?

2 REPLIES 2

Shruti D
Tera Guru

Hello @Taaha M,

To enable searching by either username or email, you can set a dynamic reference qualifier or use a scripted reference qualifier

Using a Dynamic Reference Qualifier

  • Navigate to the field's Dictionary record.

  • Scroll down to the Reference Qualifier field.

  • Set it to Dynamic.

  • Use a condition or filter that includes both the username and email.
    active=true^OR(usernameLIKE%search_username^emailLIKE%search_emailID)

Please Mark Correct  ✔️ if this solves your query and also mark Helpful 👍 if you find my response worthy based on the impact.

Regards,
Shruti

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Taaha M 

 

You need to add additional attribute in attribute like this:

 

 

AGLearnNGrow_0-1733217914143.png

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************