---
schema_version: "1"
id: a7a99853b0c61fee0e8c5cd31133e6cc58ad23172426f2b511445eb307061fd2
title: Knowledge__DataCategorySelection
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_knowledge__datacategoryselection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_knowledge__datacategoryselection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 697ab9499e0cbc315023d2db05536f80de3a00ab80dab07336510f7f0e831ed4
description: Represents a data category that classifies an article. This object is available in API version 39.0 and later.
---
# Knowledge\_\_DataCategorySelection

Represents a data category that classifies an article. This object is available in API version 39.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

By default, the prefix for this object name is Knowledge and that is the value shown in this reference. However, this prefix can be modified by changing the **Object Name** for the Knowledge\_\_kav object in Object Manager.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

Lightning Knowledge must be enabled in your org.

## Fields

| Field | Details |
| --- | --- |
| DataCategoryGroupName | 
Type

datacategorygroupreference

Properties

Create

Description

Unique name of the data category group which has categories associated with the article.



 |
| DataCategoryName | 

Type

datacategorygroupreference

Properties

Create

Description

Unique name of the data category associated with the article.



 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the article associated with the data category selection.



 |

## Usage

Every article in Salesforce Knowledge can be categorized. A data category selection represents a category that has been selected to classify an article. You can use this object to query and manage article categorization in your organization. Client applications can create a categorization for an article with a Draft status. They can also delete and query article categorizations.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

When using this object to classify an article, you can't select both a category (for example USA) and one of its descendants (California) or ascendant categories (North America). In this case, only the first category is selected.