How to search incident records by using widgets on seperate created portal

jeedimetla Mano
Kilo Explorer

hi, I am new to service now I created a new service portal in that I  added create ,update,delete incident widgets. I created 3,4 widgets and I did scripting, Now I have to Do search Incident Records in my service portal.Please give me the answer

6 REPLIES 6

Community Alums
Not applicable

Hi @jeedimetla Manoj Reddy ,

You can use the "Typehead Search" widget for your requirement.

Just clone the OOTB widget and then customize it.

For example:

You can try the below steps.

1. Navigate to 'Service Portal > Portals' in the application navigator.

2. From the list of portal records, open the one where you want to restrict the typeahead search to catalog items.

Eg: open OOB portal record 'Service Portal'

3. In the search sources related list, you'll see list of search sources which will be referred during typeahead search. Remove the ones which you don't need and keep OOB 'Service Catalog' search source to restrict your search only to catalog items.

 

Note: You can create/customize search sources and add them to your portal depending upon your requirement.

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

while using typehead search i am getting error like this

"

Your search - INC0000052 - did not match any documents

  • Make sure all words are spelled correctly
  • Try different, more general, or fewer keywords"

Community Alums
Not applicable

Hi @jeedimetla Manoj Reddy ,

Here is your solution :

https://community.servicenow.com/community?id=community_question&sys_id=05374b29db1cdbc01dcaf3231f96...

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

I have to use this code in widget or in data source