SBQQ.ProductSearchPlugin - Guided Selling Interface
Use implemented SBQQ.ProductSearchPlugin methods to further filter a prompt on the Guided Selling UI.
SBQQ
You can configure the Product Search plugin to filter a guided selling prompt based on certain parameters when users enter a value. For example, in a guided selling prompt, you could configure the plugin to return all search results in descending order from the most recent Last Ordered Date. When the user chooses their input, the products returned in the search results are shown starting from the most recent Last Ordered Date field value.
Product search plugins can use only a subset of CPQ quote fields by default. If you can't pass a field to your guided selling input, or if it passes as null, you must retrieve it with a SOQL query.
Date fields are returned as strings in the format yyyy-mm-dd.
For a Guided Selling prompt, Salesforce CPQ executes the implemented SBQQ.ProductSearchPlugin methods in the following order.
-
The constructor can be called first, but it’s not required.
-
Salesforce CPQ calls the following two methods for each guided selling input.
isInputHidden: Determines whether to hide the guided selling input from the guided selling promptgetInputDefaultValue: Sets the field value for the initial input
-
Salesforce CPQ calls
isSuggestCustomto determine whether you’re using custom or enhanced searching. -
If
isInputCustomreturned TRUE, Salesforce CPQ callssuggest. This method gives you full control of the search query - you’ll build the SELECT Clause and WHERE Clause manually, then build and perform the query. -
If
isInputCustomreturned FALSE, Salesforce CPQ callsgetAdditionalSuggestFilters. This method appends a WHERE clause to the existing SOQL query.
- SBQQ.ProductSearchPlugin Guided Selling Methods
The following are methods for a guided selling implementation ofSBQQ.ProductSearchPlugin. - SBQQ.ProductSearchPlugin - Guided Selling Example Implementation
This is an example implementation of theSystem.ProductSearchPlugin_GuidedSellinginterface.