DataCategoryGroupSobjectTypePair Class

Specifies a category group and an associated object.

Schema

Schema.DataCategoryGroupSobjectTypePair is used by the describeDataCategory GroupStructures method to return the categories available to this object.

The following are constructors for DataCategoryGroupSobjectTypePair.

Creates a new instance of the Schema.DataCategoryGroupSobjectTypePair class.

public DataCategoryGroupSobjectTypePair()

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

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

public String getDataCategoryGroupName()

Type: String

Returns the object name associated with the data category group.

public String getSobject()

Type: String

Specifies the unique name used by the API to access the data category group.

public String setDataCategoryGroupName(String name)

Type: Void

Sets the sObject associated with the data category group.

public Void setSobject(String sObjectName)

  • sObjectName:

    Type: String

    The sObjectName is the object name associated with the data category group. Valid values are:

    • KnowledgeArticleVersion—for article types.
    • Question—for questions from Answers.

Type: Void