Servicenow CatalogSearch().Serarch is not returning any result.

SubhasisS
Tera Contributor

Hi Experts,

 

I have Used CatalogSearch API in my code Where I am passing the List of Catalog and Search term. But It is not returning any result. Though I have checked Manually, I am having the catalog Items.

 

Below example code is

 

var search_term = "Apple";
var catalogIds = "e0d08b13c3330100c7c837659bba8fb4,5cbbc03e1b56bc900f01db97ab4bcb6c";

 

var now_GR = new sn_sc.CatalogSearch().search(catalogIds, '', search_term, false, false);
now_GR.query();
while(now_GR.next()) {
  gs.print(now_GR.name);
}
0 REPLIES 0