Service Catalog

Arun kumar Chin
Tera Contributor

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?"

 

ArunkumarChin_0-1745345960302.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Arun kumar Chin 

you can use Lookup select box type variable and show Department ID in drop down rather than using Reference variable

Steps

1) Variable Config

AnkurBawiskar_2-1745386843575.png

 

Output:

AnkurBawiskar_1-1745386820715.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arun kumar Chin 

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.

 

  1. 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.

 

https://www.servicenow.com/docs/bundle/yokohama-servicenow-platform/page/product/service-catalog-man...

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Arun kumar Chin 

you can use Lookup select box type variable and show Department ID in drop down rather than using Reference variable

Steps

1) Variable Config

AnkurBawiskar_2-1745386843575.png

 

Output:

AnkurBawiskar_1-1745386820715.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Thanks It Worked 🙂

Community Alums
Not applicable

@Ankur Bawiskar  amazing