- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 10:46 AM
Hello,
I'm trying to preview 'search catalog item' topic and I get the following error.
How to get the expected result/how to use this reusable block?
Thanks,
Akhil
Solved! Go to Solution.
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 11:48 AM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 11:48 AM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 12:44 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2021 02:48 AM
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.
could you help me design the output to redirect the user to the form.