DataCategory Class

Represents the categories within a category group.

Namespace

Schema

Usage

The Schema.DataCategory object is returned by the getTopCategories method.

DataCategory Methods

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

getChildCategories()

Returns a recursive object that contains the visible sub categories in the data category.

Signature

public Schema.DataCategory getChildCategories()

Return Value

Type: List<Schema.DataCategory>

getLabel()

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

Signature

public String getLabel()

Return Value

Type: String

getName()

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

Signature

public String getName()

Return Value

Type: String