Newer Version Available
QuestionDataCategorySelection
This object can be used to associate a question with a data category from a data category group or to query the categorization for a question.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
To create, read or update data category selection, you must have create, read or update permission on the categorized question. Users who can update question can also delete its category selection. Users who can create questions can only select categories visible to their role.
Fields
| Field Name | Details |
|---|---|
| DataCategoryGroupName |
|
| DataCategoryName |
|
| ParentId |
Usage
Every question can be categorized in a data category. You can use the QuestionDataCategorySelection object to query and manage question categorization. Client applications can create categorization for a question. They can also delete, query, and retrieve question categorization.
Sample Code—Java
In the following example, the selectCategory method adds a category to a question data category selection. The retrieveCategorySelections method returns all the categories from a question data category selection.
Salesforce Knowledge uses a similar object for article data category selection. See Article Type__DataCategorySelection for SOQL examples using this object.