I am searching users based on username or email-id in List collector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 01:06 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 01:23 AM - edited 12-03-2024 01:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 01:25 AM
Hi @Taaha M
You need to add additional attribute in attribute like this:
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]
****************************************************************************************************************