getAdditionalSearchFilters(quote, fieldValuesMap)

Appends a WHERE clause to the SOQL query used for the product search, so that you can further refine a user’s search input. Salesforce CPQ calls this method only when isSearchCustom returns FALSE.

global String getAdditionalSearchFilters(SObject quote, Map<String,Object> fieldValuesMap)

quote

Type: SObject

The current quote.

fieldValuesMap

Type: Map<String,Object>

A map of the search criteria. The Key is a Product2 API name and the value is the desired search value.

Type: String

The additional search filter, as a SOQL query formatted as a string. For example, 'AND Product2.Inventory_Level__c > 3'

In this method, we take an existing filter for products in a Hardware family, and append an additional filter for inventory levels greater than 3.