Skip to content

Commit af88733

Browse files
committed
Enhance docstring for get_option_set_values method in TableOperations
- Updated the docstring to clarify the types of columns supported, including Picklist, MultiSelect, Boolean, Status, and State. - Improved descriptions of the return values for better understanding of the method's functionality.
1 parent 5322083 commit af88733

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • src/PowerPlatform/Dataverse/operations

src/PowerPlatform/Dataverse/operations/tables.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,14 @@ def get_column_options(
360360
table: str,
361361
column: str,
362362
) -> Optional[OptionSetInfo]:
363-
"""Get option set values for a Picklist, MultiSelect, or Boolean column.
363+
"""Get option set values for a Picklist, MultiSelect, Boolean, Status,
364+
or State column.
364365
365366
This method retrieves the available choices for a column that uses an
366367
option set. For Picklist and MultiSelect columns, the options are the
367368
defined choice values. For Boolean columns, the result contains the
368-
True and False option labels.
369+
True and False option labels. For Status and State columns, the options
370+
are the defined status/state values.
369371
370372
:param table: Schema name of the table (e.g. ``"account"``).
371373
:type table: :class:`str`
@@ -374,7 +376,8 @@ def get_column_options(
374376
:type column: :class:`str`
375377
376378
:return: Option set information with available choices, or ``None`` if
377-
the column is not a choice/boolean type.
379+
the column is not a Picklist, MultiSelect, Boolean, Status, or
380+
State type.
378381
:rtype: :class:`~PowerPlatform.Dataverse.models.metadata.OptionSetInfo`
379382
or None
380383

0 commit comments

Comments
 (0)