Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DescribeDataCategoryGroupResult Class
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
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()
Signature
public Integer getCategoryCount()
Return Value
Type: Integer
getDescription()
Signature
public String getDescription()
Return Value
Type: String
getLabel()
Signature
public String getLabel()
Return Value
Type: String
getName()
Signature
public String getName()
Return Value
Type: String
getSobject()
Signature
public String getSobject()
Return Value
Type: String