Skip to content

Commit 7c2cd83

Browse files
committed
couple more schema->columns renames
1 parent 0591188 commit 7c2cd83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ table_info = client.create_table("new_Product", {
218218
# Create with custom primary column name and solution assignment
219219
table_info = client.create_table(
220220
table_schema_name="new_Product",
221-
schema={
221+
columns={
222222
"new_Code": "string",
223223
"new_Price": "decimal"
224224
},

src/PowerPlatform/Dataverse/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,15 @@ class ItemStatus(IntEnum):
469469
ACTIVE = 1
470470
INACTIVE = 2
471471
472-
schema = {
472+
columns = {
473473
"new_Title": "string", # Note: includes 'new_' customization prefix value
474474
"new_Quantity": "int",
475475
"new_Price": "decimal",
476476
"new_Available": "bool",
477477
"new_Status": ItemStatus
478478
}
479479
480-
result = client.create_table("new_SampleItem", schema)
480+
result = client.create_table("new_SampleItem", columns)
481481
print(f"Created table: {result['table_logical_name']}")
482482
print(f"Columns: {result['columns_created']}")
483483

0 commit comments

Comments
 (0)