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.
| Input | Type | Description |
|---|---|---|
additionalContextData | Apex-defined | Collection 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. |
catalogId | string | Required. ID of the catalog record. |
categoryNestLevel | integer | Level of nesting within the category hierarchy to include in the request. |
contextDefinitionName | string | Name of the custom context definition that’s used to create context data for categories. If null, the default context definition is used. |
correlationId | string | Unique identifier attached to requests and messages, allowing reference to a specific transaction or event chain. |
contextMappingName | string | Name of the context mapping. By default, the default context mapping associated with the context definition is used. |
enableQualificationProcedure | boolean | Indicates whether qualification rules are applied to categories ( true ) or not ( false ). |
filterInputRepresentation | Apex-defined | Collection of Apex runtime_industries_cpq.FilterInputRepresentation records that contain the filter criteria applied to the category records. |
parentCategoryId | string | ID of the parent category record. |
qualificationProcedureName | string | Name of the custom qualification procedure that’s executed to determine the category list. If null, the default qualification procedure is executed. |
userContextInputRepresentation | Apex-defined | An Apex UserContextInputRepresentation record that contains user details, such as account ID, geographical location, language preferences, and more. |
| Output | Type | Description |
|---|---|---|
apiStatusOutputRepresentation | Apex-defined | An Apex runtime_industries_cpq.ApiStatusRepresentation record that contains the status of the request, including the status code and message. |
correlationId | string | Unique identifier attached to requests and messages, allowing reference to a specific transaction or event chain. |
resultCategoryList | Apex-defined | List of filtered category records. See CategoryOutputRepresentation. |
resultListCount | integer | Number 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.