DataCategory Class

Represents the categories within a category group.

Schema

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

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.

  • getLabel()

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

  • getName()

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

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

public Schema.DataCategory getChildCategories()

Type: List<Schema.DataCategory>

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

public String getLabel()

Type: String

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

public String getName()

Type: String