---
schema_version: "1"
id: b76f8da6589d89909885ce8887ea7aa3b60c5635f6be1713ce1d4b7d82bf9695
title: |-
  Describe​DataCategoryGroupResult
        Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 21c19dc7b2cf6287a5630968be56a04069889a102d238f4c9a15c42a9126e70c
description: Contains the list of the category groups associated with KnowledgeArticleVersion and Question.Returns the number of visible data categories in the data category group.Returns the description of the data category group.Returns the label for the data category group used in the Salesforce user interface.Returns the unique name used by the API to access to the data category group.Returns the object name associated with the data category group.
---
# Describe​DataCategoryGroupResult Class

Contains the list of the category groups associated with KnowledgeArticleVersion and Question.

## Namespace

[Schema](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Schema.htm "The Schema namespace provides classes and methods for schema metadata information.")

## Usage

The describeDataCategoryGroups method returns a Schema.DescribeDataCategoryGroupResult object containing the list of the category groups associated with the specified object.

For additional information and code examples using describeDataCategoryGroups, see [Accessing All Data Categories Associated with an sObject](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_dynamic_data_categories.htm).

## Example

The following is an example of how to instantiate a data category group describe result object:

List <String\> objType = new List<String\>();
objType.add('KnowledgeArticleVersion');
objType.add('Question');

List<Schema.DescribeDataCategoryGroupResult> describeCategoryResult = 
   Schema.describeDataCategoryGroups(objType);

## DescribeDataCategoryGroupResult Methods

The following are methods for DescribeDataCategoryGroupResult. All are instance methods.

- **[getCategoryCount()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm#apex_Schema_DescribeDataCategoryGroupResult_getCategoryCount)**  
    Returns the number of visible data categories in the data category group.
- **[getDescription()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm#apex_Schema_DescribeDataCategoryGroupResult_getDescription)**  
    Returns the description of the data category group.
- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm#apex_Schema_DescribeDataCategoryGroupResult_getLabel)**  
    Returns the label for the data category group used in the Salesforce user interface.
- **[getName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm#apex_Schema_DescribeDataCategoryGroupResult_getName)**  
    Returns the unique name used by the API to access to the data category group.
- **[getSobject()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_DescribeDataCategoryGroupResult.htm#apex_Schema_DescribeDataCategoryGroupResult_getSobject)**  
    Returns the object name associated with the data category group.

### getCategoryCount()

Returns the number of visible data categories in the data category group.

#### Signature

public Integer getCategoryCount()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### getDescription()

Returns the description of the data category group.

#### Signature

public String getDescription()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getLabel()

Returns the label for the data category group used in the Salesforce user interface.

#### Signature

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getName()

Returns the unique name used by the API to access to the data category group.

#### Signature

public String getName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getSobject()

Returns the object name associated with the data category group.

#### Signature

public String getSobject()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")