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.

Search sources on Customer Service Portal

mcconnellsj
Mega Sage

Hi - I have added an additional Search source to our CSM portal, "Assets", I went with the default settings and select the search table to alm_asset.  Primary display field is model, typeahead is checked, and given it a glyph symbol.

I switch to the portal and no results are given if I search for model, serial, whatever.

The search results do have the Asset category listed, but 0 results.

I can view Assets fine using the top menu item.  But cannot search for them.

Any quick ideas?

12 REPLIES 12

mcconnellsj
Mega Sage
Hi thanks so much I will try it. Is there any reason why my basic set will not work?

Anais Geisen
Tera Expert

Unfortunately I have no idea why the OOTB behavior is not working...

Your configuration is correct in my point of view. Maybe you can open an HI incident so we'll know 🙂

 

Regards,

Anaïs

mcconnellsj
Mega Sage

Hi - I added your code as is.

I changed this line to search for serial number instead:

	gr.addQuery('serial_number', 'CONTAINS', query);

But I don't get any results coming back.

Is this line in your code correct?  Seems strange to me.

		asset.sys_id = asset.sys_id;

I appreciate your help.

Anais Geisen
Tera Expert

Hi,

In fact, you need to "copy" the values you want to get in your final object. I just called them with same name but you can change the name for better understanding as follow:

find_real_file.png

 

I'm sure you will get through this 😉 

Regards,

Anaïs

 

mcconnellsj
Mega Sage

Hi

I am still not getting anywhere, it is like I have made no changes whatsoever.

Do you have any tips on how I could debug this - to confirm that the table really is being searched?

Thanks again for your help.