Need to remove standard change templates from Service Portal Search?

micky09
Tera Contributor

How can i remove standard change templates from contextual search in service portal?

Change Templates fall under the 'Service Catalog' Catalog.   I am not sure why that is, but what this means is that Change Templates will show in the Contextual Search results, along with standard Catalog Items.   How can I prevent Change Templates from appearing in the Contextual Search, while still keeping standard Cat Items?   My initial thought was to set the 'No Search' flag on the templates, but these are read only.

1 ACCEPTED SOLUTION

Josh Virelli
Tera Guru

Hi Micky,

There should be a field called "Hide on Service Portal" on the Service Catalog Items table, you'll want to set that to true and it should filter it out. If for some reason you don't have that field, or it is not working, here is a way to edit the search source:

 

Service Portal search is configured through the Search Sources associated to your Service Portal record.

1) In the filter navigator search "Portals" and then select your Service Portal.

2) There should be a related list at the bottom called Search Sources, select the Catalogs record

find_real_file.png

3) Go to your Service Catalog and you'll notice that the Standard Change Template items are all in the category "Template Management", we can add to our Search Source query to filter out that category. Double check this, but the Sys Id of that category should be 00728916937002002dcef157b67ffb6d.

4) In our Catalogs' Data fetch script field, we can add in the query to filter out the Template Management Category by inserting this line with the other queries.

//Category is not Template Management
sc.addEncodedQuery('category!=00728916937002002dcef157b67ffb6d');

find_real_file.png

This should remove the Change Template catalog items from your search!

If my answer was helpful or answered your question, please mark it as 'Helpful' or 'Correct'

Thanks!

Josh

View solution in original post

3 REPLIES 3

Mateen
Giga Guru

Did you check the No Search field on the catalog? If it is true, it will not appear in search options. Or you can create a custom User criteria I guess

Josh Virelli
Tera Guru

Hi Micky,

There should be a field called "Hide on Service Portal" on the Service Catalog Items table, you'll want to set that to true and it should filter it out. If for some reason you don't have that field, or it is not working, here is a way to edit the search source:

 

Service Portal search is configured through the Search Sources associated to your Service Portal record.

1) In the filter navigator search "Portals" and then select your Service Portal.

2) There should be a related list at the bottom called Search Sources, select the Catalogs record

find_real_file.png

3) Go to your Service Catalog and you'll notice that the Standard Change Template items are all in the category "Template Management", we can add to our Search Source query to filter out that category. Double check this, but the Sys Id of that category should be 00728916937002002dcef157b67ffb6d.

4) In our Catalogs' Data fetch script field, we can add in the query to filter out the Template Management Category by inserting this line with the other queries.

//Category is not Template Management
sc.addEncodedQuery('category!=00728916937002002dcef157b67ffb6d');

find_real_file.png

This should remove the Change Template catalog items from your search!

If my answer was helpful or answered your question, please mark it as 'Helpful' or 'Correct'

Thanks!

Josh

bassem2
Kilo Expert

Hi Micky,

you can change the read only by navigating to URL: https://instance_name.service-now.com/nav_to.do?uri=sys_security_acl.do?sys_id=1ec7b0d4ff810200b18affffffffff0e and click admin overrides.

please let me know if that work for you.

Best

bch