Name

sn_customerservice.AjaxCustomerServiceSearch

Description

Ajax class that provides the knowledgebase search results

Script

/*
* given a search query return a list of results in json
*/
var AjaxCustomerServiceSearch = Class.create();

AjaxCustomerServiceSearch.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
  process : function() {
  	var searchQuery = this.getParameter("sysparm_searchquery"); 
  	return new global.CSHelper().getSearchResponse(searchQuery);
  },
  type: function() {
  	return "AjaxCustomerServiceSearch";
  }
});

Sys ID

2d1f449fd7223100b6b94e090e6103e8

Offical Documentation

Official Docs: