How to use 'Search Catalog Item' topic?

Akhil Pendem
Tera Contributor

Hello,

I'm trying to preview 'search catalog item' topic and I get the following error.

find_real_file.png

How to get the expected result/how to use this reusable block?

 

Thanks,

Akhil

1 ACCEPTED SOLUTION

rajneeshbaranwa
Giga Guru

If you look at the start condition there are two input variables which needs to be defined

1- Catalogs - You can assign comma separated sys_id of the catalogs in this field

2- Query Term - This is the text you need to search. Rather then using this as search input. Create a new User Text Input and use this new input  in Contextual Search script action to search catalog items.

I made below small changes to the contextual search to replace oob designed query_term with newly created user input variable search input.

 

var search_term = vaInputs.search_term.getValue();

 

 

View solution in original post

3 REPLIES 3

rajneeshbaranwa
Giga Guru

If you look at the start condition there are two input variables which needs to be defined

1- Catalogs - You can assign comma separated sys_id of the catalogs in this field

2- Query Term - This is the text you need to search. Rather then using this as search input. Create a new User Text Input and use this new input  in Contextual Search script action to search catalog items.

I made below small changes to the contextual search to replace oob designed query_term with newly created user input variable search input.

 

var search_term = vaInputs.search_term.getValue();

 

 

@rajneeshbaranwal  Thanks for the help. 

Do you mind taking a look at this thread too? I'm receiving an error when I preview OOB topic 'Search Knowledge Base'.
https://community.servicenow.com/community?id=community_question&sys_id=ae4e4edbdb755c50fb115583ca96...

Hey could you please help with a query where in if i select any carousel, it will redirect me to the catalog item form. Current it gives me an option to select from the various catalog items based on search but ends up with same preview message. 

find_real_file.png

 

 find_real_file.png

 

could you help me design the output to redirect the user to the form.