Servicenow CatalogSearch().Serarch is not returning any result.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 02:33 AM
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