Get Categories Action

Get the list of categories associated with a catalog record.

This action is available in API version 64.0 and later.

You can invoke this action via Apex and Flows only.

The Get Categories 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 additional context data for nodes of the custom context definition, if applicable. You can add details for up to 10 nodes.
catalogIdstringRequired. ID of the catalog record.
categoryNestLevelintegerLevel of nesting within the category hierarchy to include in the request.
contextDefinitionNamestringName of the custom context definition that’s used to create context data for categories. If null, the default context definition is used.
correlationIdstringUnique identifier attached to requests and messages, allowing reference to a specific transaction or event chain.
contextMappingNamestringName of the context mapping. By default, the default context mapping associated with the context definition is used.
enableQualificationProcedurebooleanIndicates whether qualification rules are applied to categories ( true ) or not ( false ).
filterInputRepresentationApex-definedCollection of Apex runtime_industries_cpq.FilterInputRepresentation records that contain the filter criteria applied to the category records.
parentCategoryIdstringID of the parent category record.
qualificationProcedureNamestringName of the custom qualification procedure that’s executed to determine the category list. If null, the default qualification procedure is executed.
userContextInputRepresentationApex-definedAn Apex UserContextInputRepresentation record that contains user details, such as account ID, geographical location, language preferences, and more.
OutputTypeDescription
apiStatusOutputRepresentationApex-definedAn Apex runtime_industries_cpq.ApiStatusRepresentation record that contains the status of the request, including the status code and message.
correlationIdstringUnique identifier attached to requests and messages, allowing reference to a specific transaction or event chain.
resultCategoryListApex-definedList of filtered category records. See CategoryOutputRepresentation.
resultListCountintegerNumber of category records in the result.

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

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