Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/PowerPlatform/Dataverse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,19 +518,19 @@ def delete_table(self, table_schema_name: str) -> None:
with self._scoped_odata() as od:
od._delete_table(table_schema_name)

def list_tables(self) -> list[str]:
def list_tables(self) -> list[dict[str, Any]]:
"""
List all custom tables in the Dataverse environment.
List all non-private tables in the Dataverse environment.

:return: List of custom table names.
:rtype: :class:`list` of :class:`str`
:return: List of EntityDefinition metadata dictionaries.
:rtype: :class:`list` of :class:`dict`

Example:
List all custom tables::
Copy link
Collaborator

@zhaodongwang-msft zhaodongwang-msft Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep the indentation on 529 - 533 to align with rest of the docstrings?

List all non-private tables and print their logical names::

tables = client.list_tables()
for table in tables:
print(table)
tables = client.list_tables()
for table in tables:
print(table["LogicalName"])
"""
with self._scoped_odata() as od:
return od._list_tables()
Expand Down