describeDataCategoryGroups()

Retrieves available category groups for objects specified in the request.

Use this call to describe the available category groups for the objects specified in the request. This call can be used with the describeDataCategoryGroupStructures() call to describe all the categories available for a specific object. For additional information about data categories, see “Work with Data Categories” in the Salesforce online help.

This sample shows how to retrieve the data category groups associated with:

  • Salesforce Knowledge articles
  • Questions from the Answers feature

It returns the name, label and description of a category group and the name of the associated sobject (article or question). It also returns the number of data categories in the data category group.

This sample shows how to retrieve the data category groups associated with:

  • Salesforce Knowledge articles
  • Questions from the Answers feature

It returns the name, label and description of a category group and the name of the associated sobject (article or question). It also returns the number of data categories in the data category group.

NameTypeDescription
sObjectTypesstring[]The specified value can be:
  • KnowledgeArticleVersion—to retrieve category groups associated with article types.
  • Question—to retrieve category groups associated with questions.
For additional information about articles and questions, see “Work with Articles and Translations” in the Salesforce online help.

DescribeDataCategoryGroupResult

InvalidSObjectFault

UnexpectedErrorFault