Page 1 of 1

A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadat

Posted: Sun Jun 11, 2023 3:58 pm
by answerhappygod
A company created a Catalog with items tagged with one or more of the following categories using the custom tags metadata attribute: Enterprise, Department, Team, andProject.Select the option showing the code that builds the right CatalogSearchCriteria for a search that will correctly populate the Catalog search results with the list of Entitlements tagged with a selected category. Only Entitlements must be displayed.

A. CatalogSearchCriteria tags = new CatalogSearchCriteria(Catalogsaarchcriteria.Argument.TAG, selectedcategory,CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria cat = new CatalogSearchCriteria(CatalogSearchCriteria.Argument.CATEGORY,"Entitlement",Catalog SearchCriteria.Operator.EQUAL);CatalogSearchCriteria scrt = new CatalogSearchCriteria (tags,cat,CatalogSearchCriteria.Operator.AND);
B. Catalogsearchcriteria scrt. = new CatalogsearchCriteria(Catalogsearchcriteria.Argument.CATEGORY, "Entitlement",CatalogSearchCritetia. Operator.EQUAL);
C. CatalogSearchCriteria scrt = new CatalogSearchCriteria(CatalogSearchCriteria.Argument.TAG, selectedCategory,CatalogSearchCriteria. Operator. EQUAL);
D. CatalogSearchCriteria tags = new CatalogSearchCriteria(CatalogSearchCriteria.Argument. TAG, selectedcategory,CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria cat = new CatalogSearchCriteria(CatalogSearchCriteria. Argument. CATEGORY, "Entitlement",CatalogSearchCriteria.Operator.EQUAL);CatalogSearchCriteria scrt = new CatalogSearchCriteria (tags, cat,CatalogSearchCriteria.Operator.OR);