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.

Criteria Input

Input representation of the filter criteria item request.
JSON example
1"criteria":
2[{
3   "attributeType": "ProductStandard",
4   "property": "name",
5   "operator": "eq",
6   "value": "iPhone"
7},
8{
9   "criteriaType": "CustomWhereCondition",
10   "value": "(effectiveenddate = null OR effectiveenddate >= 2024-06-25)"
11}
12]
Properties
Name Type Description Required or Optional Available Version
attributeType String

Search attribute type of the facet for a faceted search. Valid values are:

  • ProductStandard
  • ProductCustom
  • ProductDynamicAttribute
  • ProductAttributeStandard
  • ProductAttributeCustom
This property is applicable if the Use Indexed Data For Product Listing and Search toggle from the Product Discovery Settings page from Setup is enabled.
Optional 63.0
criteriaType String Type of criteria for the filter. Valid value is:
  • CustomWhereCondition
Required 60.0
operator String

Operator used for the filter criteria. The supported operators are:

  • eq
  • in
  • contains—This value isn’t applicable if the Use Indexed Data For Product Listing and Search toggle from the Product Discovery Settings page from Setup is enabled.
  • gt—Specifies a greater than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • lt—Specifies a less than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • gte—Specifies a greater than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • lte—Specifies a less than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
Required 60.0
property String Property name to use in the filter, which must be the same as the object field. Required 60.0
value Object Value for the filter criteria. Required 60.0