Describe​DataCategoryGroupStructureResult Class

Contains the category groups and categories associated with KnowledgeArticleVersion and Question.

Schema

The describeDataCategoryGroupStructures method returns a list of Schema.Describe​DataCategoryGroupStructureResult 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.

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

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

  • getDescription()

    Returns the description of the data category group.

  • getLabel()

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

  • getName()

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

  • getSobject()

    Returns the name of object associated with the data category group.

  • getTopCategories()

    Returns a Schema.DataCategory object, that contains the top categories visible depending on the user’s data category group visibility settings.

Returns the description of the data category group.

public String getDescription()

Type: String

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

public String getLabel()

Type: String

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

public String getName()

Type: String

Returns the name of object associated with the data category group.

public String getSobject()

Type: String

Returns a Schema.DataCategory object, that contains the top categories visible depending on the user’s data category group visibility settings.

public List<Schema.DataCategory> getTopCategories()

Type: List<Schema.DataCategory>

For more information on data category group visibility, see “Data Category Visibility” in the Salesforce online help.