ChoiceMetadata

Metadata for a Dataverse single-select choice (option set / picklist) column, including the available choice values.

ChoiceMetadata Class

Properties

Name
Type
Default
Description
ChoiceLogicalNamestring
The logical name of the choice (option set) definition in Dataverse.
ChoicesList<ChoiceValueMetadata>
The list of available choice values with their display names.
ColumnNamestring
The logical name of the column in Dataverse (e.g. 'firstname', 'emailaddress1').
ColumnTypeColumnType
Choice
Returns Choice.
Descriptionstring?
The localized description of the column, or null if no description is configured.
DisplayNamestring
The localized display name of the column as configured in Dataverse.
IsGlobalbool
False
Indicates whether this choice is a global option set shared across multiple tables.
IsValidForCreatebool
False
Indicates whether this column can be set when creating a new record.
IsValidForUpdatebool
False
Indicates whether this column can be modified when updating an existing record.
RequiredLevelRequiredLevel
None
The required level of the column (None, SystemRequired, ApplicationRequired, or Recommended).
Name: ChoiceLogicalName
Type: string
Description: The logical name of the choice (option set) definition in Dataverse.
Name: Choices
Type: List<ChoiceValueMetadata>
Description: The list of available choice values with their display names.
Name: ColumnName
Type: string
Description: The logical name of the column in Dataverse (e.g. 'firstname', 'emailaddress1').
Name: ColumnType
Type: ColumnType
Default: Choice
Description: Returns Choice.
Name: Description
Type: string?
Description: The localized description of the column, or null if no description is configured.
Name: DisplayName
Type: string
Description: The localized display name of the column as configured in Dataverse.
Name: IsGlobal
Type: bool
Default: False
Description: Indicates whether this choice is a global option set shared across multiple tables.
Name: IsValidForCreate
Type: bool
Default: False
Description: Indicates whether this column can be set when creating a new record.
Name: IsValidForUpdate
Type: bool
Default: False
Description: Indicates whether this column can be modified when updating an existing record.
Name: RequiredLevel
Type: RequiredLevel
Default: None
Description: The required level of the column (None, SystemRequired, ApplicationRequired, or Recommended).

ChoiceValueMetadata Class

Properties

Name
Type
Default
Description
DisplayNamestring
The localized display name of the choice option.
Valueint
0
The integer value of the choice option.
Name: DisplayName
Type: string
Description: The localized display name of the choice option.
Name: Value
Type: int
Default: 0
Description: The integer value of the choice option.