Is it possible to attach a link to a catalog item from Contextual Search Results?

Brian Bouchard
Mega Sage

After enabling Contextual Search on Incidents and Calls, I see when a catalog item is found by the search, our options are "Preview" and "Order"   We don't want our help desk staff filling in Service Catalog requests for items that are available, so I'm wondering if it is possible to add another option which is to include the link to the catalog item to a field in the record (similarly to embedding a link to an article)?

1 ACCEPTED SOLUTION

Manish Vinayak1
Tera Guru

Hi Brian,

 

The "Order" action present in the Catalog Item results comes from the Search Action definition for the contextual search.

You can find those settings by navigating to the following:

Contextual Search > Table Configurations

if you open the record for Incident table, you will see the following form:

find_real_file.png

 

The search action configurations mention what actions are available with the results. You will see for ServiceCatalogSearchResource the action available is Order. But unfortunately, I didn't find any way to create new Search Action configuration, nor I was able to find a way to create a new search action (You can navigate to the search action record by clicking on "Order"), as it appears to be read-only, and there is no "New" button for that table.

 

find_real_file.png

 

ServiceNow documentation only mentions about modifying the existing search actions (modifications like changing label). Here is the link for the documentation:

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/contextual-search...

 

So, from what I see, I would say it won't be possible to add another action by using the out of the box components. One option could be checking the AJAX Utils which populate the details once it fetches the search results. Maybe tweak the UI Macro, to show the custom button to attach link to catalog item.

 

Hope this helps!

Cheers,

Manish

View solution in original post

6 REPLIES 6

dak
Tera Expert

I have started an issue with HI. I will let you know if they can provide any solution.

Did the issue you started on HI result in an answer?