Newer Version Available
DescribeDataCategoryGroupResult Class
Contains the list of the category groups associated with
KnowledgeArticleVersion and Question.
Namespace
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:
1List <String> objType = new List<String>();
2objType.add('KnowledgeArticleVersion');
3objType.add('Question');
4
5List<Schema.DescribeDataCategoryGroupResult> describeCategoryResult =
6 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