Virtual Agent Request Catalog Item showing sys_id instead of Display Name

Nathan Okh
Mega Sage

Hi I'm building a topic to make a Service Request. In the catalog item, there is a configuration item reference choice. 

When VA requests for a choice from the end user its only listing and searching from the Sys_id... How do I change it to search and display based on Display Name or Name or Serial Number?

NathanOkh_0-1712680270582.png

 


Thanks!
I will mark helpful or solved if I get an answer that helps.

3 REPLIES 3

Sujatha V M
Kilo Patron
Kilo Patron

@Nathan Okh  In Dynamic Choice Input activity, please have it scripted as such to push the values. 

 
var items = [];
var sc_Cat = new GlideRecord('sc_cat_item');
//sc_Cat .addQuery('category', <any script variables for quering, if required>);
sc_Cat .addQuery('active', 'true');
sc_Cat .query();
while(sc_Cat .next()){
items.push({'value': sc_Cat .getValue('sys_id'), 'label': sc_Cat .getDisplayValue('name') });
}
return items;
 
Result : 
SujathaVM_0-1712684797567.png

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

While i work on that by chance, can you help me with another question of mines?

 

Duplicated "Request Catalog Item" topic block Publ... - ServiceNow Community

@Nathan Okh Sure will check out and help you on it.

 

Please mark this as helpful and accept it as a solution if this resolves your query.

 

 

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.