Describe​DataCategoryGroupResult Class

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

Namespace

Schema

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.

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()

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

Signature

public Integer getCategoryCount()

Return Value

Type: Integer

getDescription()

Returns the description of the data category group.

Signature

public String getDescription()

Return Value

Type: String

getLabel()

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

Signature

public String getLabel()

Return Value

Type: String

getName()

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

Signature

public String getName()

Return Value

Type: String

getSobject()

Returns the object name associated with the data category group.

Signature

public String getSobject()

Return Value

Type: String