search(quote, fieldValuesMap)

Overrides the entire user search input. Salesforce CPQ calls this method only when isSearchCustom returns TRUE.

global List<PricebookEntry> search(SObject quote, Map<String,Object> fieldValuesMap)

quote

Type: SObject

The current quote.

fieldValuesMap

Type: Map<String,Object>

A map of the search criteria. The map key is a Product2 API name and the value is the desired search value. Contains only keys for non-null values.

Type: List<PricebookEntry>

This example builds and returns a list of price book entries.