Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Resource search on Dispatcher Workspace

Linda Eju
Tera Contributor

IMG_6444.png

Hi Team,

 

I'd like to improve the efficiency of resource management on the dispatcher workspace. Currently, we can only search for resources by typing out their full names. I want to enhance this search functionality by enabling a "contains" search, which is the traditional way of searching through a list of items.

 

Thanks

1 REPLY 1

GangareddyNachu
ServiceNow Employee
ServiceNow Employee

Currently, the resource search uses  '123TEXTQUERY321'. It returns the string matches in all fields on a table.

 For example, this script returns records from the Incident table with field values that include the 'email' string. It looks for keyword "email" across all the fields.

var now_GR = new GlideRecord('incident');
gr.addQuery('123TEXTQUERY321', 'email');
gr.query();

If, we plan to use "contains" instead of "123TEXTQUERY321", we only limit search to specific field and we cannot search across all fields on the table.