You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ The SDK provides a simple, pythonic interface for Dataverse operations:
100
100
|---------|-------------|
101
101
|**DataverseClient**| Main entry point for all operations with environment connection |
102
102
|**Records**| Dataverse records represented as Python dictionaries with column schema names |
103
-
|**Schema Names**| Use table schema names (`"account"`, `"new_MyTestTable"`) and column schema names (`"name"`, `"new_MyTestColumn"`). See: [Table definitions in Microsoft Dataverse](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/entity-metadata)|
103
+
|**Schema names**| Use table schema names (`"account"`, `"new_MyTestTable"`) and column schema names (`"name"`, `"new_MyTestColumn"`). See: [Table definitions in Microsoft Dataverse](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/entity-metadata)|
104
104
|**Bulk Operations**| Efficient bulk processing for multiple records with automatic optimization |
105
105
|**Paging**| Automatic handling of large result sets with iterators |
106
106
|**Structured Errors**| Detailed exception hierarchy with retry guidance and diagnostic information |
:param table_schema_name: Table schema name (e.g. ``"account"`` or ``"new_MyTestTable"``).
160
+
:param table_schema_name: Schema name of the table (e.g. ``"account"`` or ``"new_MyTestTable"``).
161
161
:type table_schema_name: ``str``
162
162
:param ids: Single GUID string or list of GUID strings to update.
163
163
:type ids: ``str`` or ``list[str]``
@@ -210,7 +210,7 @@ def delete(
210
210
"""
211
211
Delete one or more records by GUID.
212
212
213
-
:param table_schema_name: Table schema name (e.g. ``"account"`` or ``"new_MyTestTable"``).
213
+
:param table_schema_name: Schema name of the table (e.g. ``"account"`` or ``"new_MyTestTable"``).
214
214
:type table_schema_name: ``str``
215
215
:param ids: Single GUID string or list of GUID strings to delete.
216
216
:type ids: ``str`` or ``list[str]``
@@ -266,19 +266,19 @@ def get(
266
266
When ``record_id`` is provided, returns a single record dictionary.
267
267
When ``record_id`` is None, returns a generator yielding batches of records.
268
268
269
-
:param table_schema_name: Table schema name (e.g. ``"account"`` or ``"new_MyTestTable"``).
269
+
:param table_schema_name: Schema name of the table (e.g. ``"account"`` or ``"new_MyTestTable"``).
270
270
:type table_schema_name: ``str``
271
271
:param record_id: Optional GUID to fetch a specific record. If None, queries multiple records.
272
272
:type record_id: ``str`` or ``None``
273
273
:param select: Optional list of attribute logical names to retrieve. Column names are case-insensitive and automatically lowercased (e.g. ``["new_Title", "new_Amount"]`` becomes ``"new_title,new_amount"``).
274
274
:type select: ``list[str]`` or ``None``
275
-
:param filter: Optional OData filter string, e.g. ``"name eq 'Contoso'"`` or ``"new_quantity gt 5"``. **IMPORTANT: Column names in filter expressions must use exact lowercase logical names** (e.g. ``"new_quantity"``, not ``"new_Quantity"``). The filter string is passed directly to the Dataverse Web API without transformation.
275
+
:param filter: Optional OData filter string, e.g. ``"name eq 'Contoso'"`` or ``"new_quantity gt 5"``. Column names in filter expressions must use exact lowercase logical names (e.g. ``"new_quantity"``, not ``"new_Quantity"``). The filter string is passed directly to the Dataverse Web API without transformation.
276
276
:type filter: ``str`` or ``None``
277
277
:param orderby: Optional list of attributes to sort by, e.g. ``["name asc", "createdon desc"]``. Column names are automatically lowercased.
278
278
:type orderby: ``list[str]`` or ``None``
279
279
:param top: Optional maximum number of records to return.
280
280
:type top: ``int`` or ``None``
281
-
:param expand: Optional list of navigation properties to expand, e.g. ``["primarycontactid"]``. **IMPORTANT: Navigation property names are case-sensitive and must match the server-defined names exactly.**. These are NOT automatically transformed. Consult entity metadata for correct casing.
281
+
:param expand: Optional list of navigation properties to expand, e.g. ``["primarycontactid"]``. Navigation property names are case-sensitive and must match the server-defined names exactly. These are NOT automatically transformed. Consult entity metadata for correct casing.
282
282
:type expand: ``list[str]`` or ``None``
283
283
:param page_size: Optional number of records per page for pagination.
:param table_schema_name: Table schema name (e.g. ``"new_MyTestTable"`` or ``"account"``).
389
+
:param table_schema_name: Schema name of the table (e.g. ``"new_MyTestTable"`` or ``"account"``).
390
390
:type table_schema_name: ``str``
391
391
392
392
:return: Dictionary containing table metadata with keys ``table_schema_name``,
@@ -414,7 +414,7 @@ def create_table(
414
414
"""
415
415
Create a simple custom table with specified columns.
416
416
417
-
:param table_schema_name: Table schema name with customization prefix value (e.g. ``"new_MyTestTable"``).
417
+
:param table_schema_name: Schema name of the table with customization prefix value (e.g. ``"new_MyTestTable"``).
418
418
:type table_schema_name: ``str``
419
419
:param columns: Dictionary mapping column names (with customization prefix value) to their types. All custom column names must include the customization prefix value (e.g. ``"new_Title"``).
420
420
Supported types:
@@ -431,7 +431,7 @@ class ItemStatus(IntEnum):
431
431
1036: {"Active": "Actif", "Inactive": "Inactif"}
432
432
}
433
433
434
-
:type schema: dict[str, Any]
434
+
:type columns: dict[str, Any]
435
435
:param solution_unique_name: Optional solution unique name that should own the new table. When omitted the table is created in the default solution.
436
436
:type solution_unique_name: ``str`` or ``None``
437
437
:param primary_column_schema_name: Optional primary name column schema name with customization prefix value (e.g. ``"new_MyTestTable"``). If not provided, defaults to ``"{customization prefix value}_Name"``.
:param table_schema_name: Table schema name (e.g. ``"new_MyTestTable"`` or ``"account"``).
486
+
:param table_schema_name: Schema name of the table (e.g. ``"new_MyTestTable"`` or ``"account"``).
487
487
:type table_schema_name: ``str``
488
488
489
489
:raises ~PowerPlatform.Dataverse.core.errors.MetadataError: If the table does not exist or deletion fails.
@@ -523,7 +523,7 @@ def create_columns(
523
523
"""
524
524
Create one or more columns on an existing table using a schema-style mapping.
525
525
526
-
:param table_schema_name: Table schema name (e.g. ``"new_MyTestTable"``).
526
+
:param table_schema_name: Schema name of the table (e.g. ``"new_MyTestTable"``).
527
527
:type table_schema_name: ``str``
528
528
:param columns: Mapping of column schema names (with customization prefix value) to supported types. All custom column names must include the customization prefix value** (e.g. ``"new_Notes"``). Primitive types include
:param table_schema_name: Schema name of the table.
494
494
:type table_schema_name: ``str``
495
495
:param key: Record GUID (with or without parentheses).
496
496
:type key: ``str``
@@ -521,17 +521,17 @@ def _get_multiple(
521
521
) ->Iterable[List[Dict[str, Any]]]:
522
522
"""Iterate records from an entity set, yielding one page (list of dicts) at a time.
523
523
524
-
:param table_schema_name: Table schema name.
524
+
:param table_schema_name: Schema name of the table.
525
525
:type table_schema_name: ``str``
526
526
:param select: Columns to include (``$select``) or ``None``. Column names are automatically lowercased.
527
527
:type select: ``list[str]`` | ``None``
528
-
:param filter: OData ``$filter`` expression or ``None``. IMPORTANT: This is passed as-is without transformation. Users must provide lowercase logical column names (e.g., "statecode eq 0").
528
+
:param filter: OData ``$filter`` expression or ``None``. This is passed as-is without transformation. Users must provide lowercase logical column names (e.g., "statecode eq 0").
529
529
:type filter: ``str`` | ``None``
530
530
:param orderby: Order expressions (``$orderby``) or ``None``. Column names are automatically lowercased.
531
531
:type orderby: ``list[str]`` | ``None``
532
532
:param top: Max total records (applied on first request as ``$top``) or ``None``.
533
533
:type top: ``int`` | ``None``
534
-
:param expand: Navigation properties to expand (``$expand``) or ``None``. IMPORTANT: These are case-sensitive and passed as-is. Users must provide exact navigation property names from entity metadata.
534
+
:param expand: Navigation properties to expand (``$expand``) or ``None``. These are case-sensitive and passed as-is. Users must provide exact navigation property names from entity metadata.
535
535
:type expand: ``list[str]`` | ``None``
536
536
:param page_size: Per-page size hint via ``Prefer: odata.maxpagesize``.
0 commit comments