Newer Version Available
Data Categories
Data categories are organized by category group and let:
- Users classify and find records.
- Administrators control access to records.
Data categories can be used by Salesforce Knowledge (articles) and answers communities (questions).
- Data Categories and Articles
-
Salesforce Knowledge uses data categories to classify articles and make them easier to find. For example, to classify articles by sales regions and products, create two category groups: Sales Regions and Products. The Sales Regions category group could consist of a geographical hierarchy, such as All Sales Regions as the top level and North America, Europe, and Asia at the second level. The Products group could have All Products as the top level and Phones, Computers, and Printers at the second.
- Data Categories and Answers
-
In an answers zone, data categories help organize questions for easy browsing. Each answers zone supports one category group. For example, if you're a computer manufacturer you might create a Products category group that has four sibling categories: Performance Laptops, Portable Laptops, Gaming Desktops, and Enterprise Desktops. On the Answers tab, zone members can assign one of the four categories to each question and then browse these categories for answers to specific questions.
Working with Data Categories in the API
The following table lists API resources for working with data categories.
| Name | Type | Description |
|---|---|---|
| Article Type__DataCategorySelection | Object | Gives access to article categorization. |
| QuestionDataCategorySelection | Object | Gives access to question categorization. |
| WITH DATA CATEGORY filteringExpression | SOQL clause | Filters articles depending on their status in the publishing cycle and their data categories. For more information, see the Salesforce SOQL and SOSL Reference Guide. |
| WITH DATA CATEGORY DataCategorySpec | SOSL clause | Finds articles based on their categorization. For more information, see the Salesforce SOQL and SOSL Reference Guide. |
| describeDataCategoryGroups() | Call | Retrieves available category groups for objects specified in the request. |
| describeDataCategoryGroupStructures() | Call | Retrieves available category groups along with their data category structure for objects specified in the request. |
| describeDataCategoryGroups | Apex method | Returns a list of the category groups associated with the specified objects. See the Apex Developer Guide. |
| describeDataCategoryGroupStructures | Apex method | Returns available category groups along with their data category structure for objects specified in the request. See the Apex Developer Guide. |