Search Product with Guided Selection Action

Use guided product selection to search for products.

This action is available in API version 64.0 and later.

You can invoke this action via Apex and Flows only.

The Search Product with Guided Selection action is available in Enterprise, Unlimited, and Developer Editions where Product Discovery is enabled.

InputTypeDescription
additionalContextDataApex-definedCollection of Apex runtime_industries_cpq.AdditionalContextData records that contain the nodes used in addition to context definition nodes for data hydration. This parameter can contain up to 10 nodes.
additionalFieldsApex-definedAn Apex runtime_industries_cpq.AdditionalFields record that contains the collection of additional fields to be included in the response. This parameter supports only the fields from the Product2 and ProductAttributeDefinition objects. The fields defined for the ProductAttributeDefinition object must also be available on the ProductClassificationAttr object.
catalogIdstringID of the catalog to find and retrieve products.
categoryIdstringID of the category or subcategory to find and retrieve products.
contextDefinitionstringAPI name of the context definition that’s used for context creation. If you don’t specify a value, the context selected on the Product Discovery Settings page is used.
contextMappingstringAPI name of the context mapping that’s used for data hydration. The value of this parameter is used only if it belongs to the specified context definition.
correlationIdstringUnique ID that’s used to reference a series of related actions.
currencyCodestringCurrency code that’s used to calculate and show prices. Only the products with the currency code matching the entered currency code are fetched.
executeConfigurationRulesbooleanIndicates whether configuration rules must run ( true ) or not ( false ). Available in API version 67.0 and later.
enablePricingbooleanIndicates whether pricing procedure must run ( true ) or not ( false ). The default value is true. To use this parameter, the Pricing Procedure setting must be enabled.
enableQualificationbooleanIndicates whether qualification procedure must run ( true ) or not ( false ). The default value is true. To use this parameter, the Qualification Procedure setting must be enabled.
filterInputRepresentationApex-definedAn Apex runtime_industries_cpq.FilterInputRepresentation record that contains the filter criteria. This parameter supports only the name property and the eq , in , or contains operators. If it contains multiple criteria, all the criteria are applied.
guidedSelectionResponseIdstringResponse identifier that stores user responses specified in the guided product selection window.
includeCatalogDetailsbooleanIndicates whether catalog details must be included in the response ( true ) or not ( false ).
orderBystringComma-delimited string of key-value pairs that specify how results are sorted. Each string must contain a field name and its sort order. For example, [“name:asc”,”custom_field:asc”].
priceBookIdstringID of the pricebook that the pricing information is retrieved from.
pricingProcedurestringAPI name of the pricing procedure to calculate product prices. If you don’t specify a value, the pricing procedure selected on the Product Discovery Settings page is used.
productClassificationIdstringID of the product classification that’s used to filter products.
productCursorstringUnique identifier that represents the position of the product from which the next set of results are retrieved.
qualificationProcedurestringAPI name of the qualification procedure to evaluate product eligibility. If you don’t specify a value, the qualification procedure selected on the Product Discovery Settings page is used.
recordLimitintegerMaximum number of results to be returned in the response. Specify a value from 1 through 100. Default value is 10.
relatedObjectFiltersApex-definedCollection of Apex runtime_industries_cpq.RelatedObjectFilterInputRepresentation records, each containing a related object and the filter criteria that’s applied on the object.
searchTermsApex-definedCollection of terms that are used to search products. See GuidedSelectionSearchTerm.
transactionContextIdstringContext ID of the quote or order. Available in API version 67.0 and later.
transactionIdstringID of the quote or order. Available in API version 67.0 and later.
userContextApex-definedAn Apex ConnectApi.UserContextInputRepresentation record containing user information to evaluate product eligibility and calculate pricing.
OutputTypeDescription
apiStatusOutputRepresentationApex-definedAn Apex runtime_industries_cpq.ApiStatusRepresentation record that contains the status of the request, including the status code and message.
contextIdstringID of the context that’s created by using the specified context definition.
correlationIdstringUnique identifier attached to requests and messages, allowing reference to a specific transaction or event chain.
productCursorstringUnique identifier that represents the position of the product from which the next set of results are retrieved.
productListOutputRepresentationsApex-definedCollection of Apex ProductListOutputRepresentation records that contain details about the product shown by the Guided Product Selection.
recordOffsetintegerNumber of catalog records to skip in the request. The default is 0.
searchTermsApex-definedCollection of terms that are used to search products. See GuidedSelectionSearchTerm.
userContextApex-definedAn Apex ConnectApi.UserContextRepresentation record containing user information.

Here’s a sample input to call this invocable action from Apex code.

Here’s a sample response when you call this action.