- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 11:19 AM
I created a Department ID field in the Service Catalog referencing cmn_department, but it's showing the department name instead of the department ID. How can I fix this?"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:41 PM
you can use Lookup select box type variable and show Department ID in drop down rather than using Reference variable
Steps
1) Variable Config
Output:
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:22 PM
Out of the box (OOTB), it displays the name of the department. I wouldn’t recommend changing this behavior. Instead, consider adding another attribute to show the department ID as well, so that users can view both the name and ID in one place.
- In the Attributes field, enter a comma-separated list of auto-complet attributes:
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=first_name;last_name;email,ref_ac_columns_search=true
Replace the first_name with department_id or actual field name.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:41 PM
you can use Lookup select box type variable and show Department ID in drop down rather than using Reference variable
Steps
1) Variable Config
Output:
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 06:28 AM
@Ankur Bawiskar Thanks It Worked 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2025 02:03 AM
@Ankur Bawiskar amazing