CatalogSearch - Scoped
-
- UpdatedFeb 1, 2024
- 1 minute read
- Washington DC
- API reference
The CatalogSearch API enables you to search catalog item.
To use this class in a scoped application, use the sn_sc
namespace
identifier. The Service Catalog Scoped API plugin (ID: com.glideapp.servicecatalog.scoped.api)
that is enabled by default is required to access the CatalogSearch API.
Scoped CatalogSearch - CatalogSearch()
Creates an instance of the CatalogSearch class.
Name | Type | Description |
---|---|---|
None |
Example
Scoped CatalogSearch - search (String catalogID, String categoryID, String term, Boolean mobile, Boolean noDepthSearch)
Searches a catalog item based on a search term. The search can be narrowed down to a catalog category level.
Type | Description |
---|---|
GlideRecord | Returns the GlideRecord on sc_cat_item matching the search result. |
Example
This example shows how to search all catalogs and all categories for term: ServiceNow.
Output