Want custom fields in reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi all,
I am stuck at one issue. The reference field for sys_user table is taking the first name and last name while searching in a reference variable. But Can I also add two newly created fields? which is u_test_fname and u_test_lname. So If i search these name also. I should get the user records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @Abishek1998 ,
you don't need a reference qualifier script for this !
you need to add the ref_ac_columns attribute to the dictionary attribute.
from which you can search which any fields mentioned in attributes..
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
If you mean search table using those field values, then add this code in your variable attribute and check:
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_test_fname;u_test_lname,ref_ac_columns_search=trueRegards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
your question is easy.
Did you try searching docs before posting it?
That would have saved your time
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Abishek1998
- Open your Catalog Item and select your reference variable.
- Add the following comma-separated string to the Variable Attributes field:
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_test_fname;u_test_lname,ref_ac_columns_search=true
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti