getFilterDefaultValue(quote, fieldName)
Determines the value for the initial search. Salesforce CPQ calls this implemented method for each input field.
global String getFilterDefaultValue(SObject quote, String fieldName)
- quote
Type: SObject
The current quote.
- fieldName
Type: String
Quote field used in evaluations to determine the method's output.
Type: String
Returns the string value used as the filter’s initial search input.
In this example, the method sets the product family filter’s value to Service if the quote has a type of Quote.