Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.SearchFacet

Search facet.
This class is abstract and is a superclass of ConnectApi.DistinctValueSearchFacet.
Property Name Type Description Available Version
attributeType ConnectApi.​CommerceSearch​AttributeType Search attribute type. Values are:
  • Custom
  • PricebookEntry
  • ProductAttribute
  • ProductCategory
  • Product2
  • Standard
52.0
displayName String Display name of the facet. 52.0
displayRank Integer Display rank of the facet. Valid values are from 1 through 50. 52.0
displayType ConnectApi.​CommerceSearchFacet​DisplayType Display type of the facet. Values are:
  • CategoryTree
  • DatePicker
  • MultiSelect
  • SingleSelect
52.0
facetType ConnectApi.​CommerceSearch​FacetType Search facet type. Value is:
  • DistinctValue
  • Range
52.0
nameOrId String Developer name of the attribute. In version 52.0 and later, the ID of the attribute isn’t supported. 52.0