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.
DescribeDataCategoryGroupStructureResult Class
Namespace
Usage
The describeDataCategoryGroupStructures method returns a list of Schema.DescribeDataCategoryGroupStructureResult objects containing the category groups and categories associated with the specified object.
For additional information and code examples, see Accessing All Data Categories Associated with an sObject.
Example
1List <DataCategoryGroupSobjectTypePair> pairs =
2 new List<DataCategoryGroupSobjectTypePair>();
3
4DataCategoryGroupSobjectTypePair pair1 =
5 new DataCategoryGroupSobjectTypePair();
6pair1.setSobject('KnowledgeArticleVersion');
7pair1.setDataCategoryGroupName('Regions');
8
9DataCategoryGroupSobjectTypePair pair2 =
10 new DataCategoryGroupSobjectTypePair();
11pair2.setSobject('Questions');
12pair2.setDataCategoryGroupName('Regions');
13
14pairs.add(pair1);
15pairs.add(pair2);
16
17List<Schema.DescribeDataCategoryGroupStructureResult>results =
18 Schema.describeDataCategoryGroupStructures(pairs, true);DescribeDataCategoryGroupStructureResult Methods
The following are methods for DescribeDataCategoryGroupStructureResult. All are instance methods.
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
getTopCategories()
Signature
public List<Schema.DataCategory> getTopCategories()
Return Value
Type: List<Schema.DataCategory>
Usage
For more information on data category group visibility, see “Data Category Visibility” in the Salesforce online help.