Skip to content

Commit a0ae21d

Browse files
author
Saurabh Badenkal
committed
Fix README: list_table_relationships includes ManyToOne (confirmed Dataverse API)
Dataverse Web API supports EntityDefinitions({id})/ManyToOneRelationships as a standard metadata endpoint. ManyToOne is the outgoing lookup perspective (child -> parent), complementing OneToMany (parent -> child). - README: 'one-to-many + many-to-many' -> 'one-to-many + many-to-one + many-to-many' - _relationships.py docstring updated to match - copilot-instructions.md: added SKILL.md reference to governance list 770 unit tests passing.
1 parent a595a72 commit a0ae21d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ rels = client.tables.list_relationships()
559559
for rel in rels:
560560
print(f"{rel['SchemaName']} ({rel.get('@odata.type')})")
561561

562-
# List relationships for a specific table (one-to-many + many-to-many)
562+
# List relationships for a specific table (one-to-many + many-to-one + many-to-many)
563563
account_rels = client.tables.list_table_relationships("account")
564564
for rel in account_rels:
565565
print(f"{rel['SchemaName']} -> {rel.get('@odata.type')}")

src/PowerPlatform/Dataverse/data/_relationships.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def _list_table_relationships(
198198
``$select``. Values are passed as-is (PascalCase).
199199
:type select: ``list[str]`` or ``None``
200200
201-
:return: Combined list of one-to-many and many-to-many relationship
202-
metadata dictionaries (may be empty).
201+
:return: Combined list of one-to-many, many-to-one, and many-to-many
202+
relationship metadata dictionaries (may be empty).
203203
:rtype: ``list[dict[str, Any]]``
204204
205205
:raises MetadataError: If the table is not found.

0 commit comments

Comments
 (0)