René's URL Explorer Experiment


Title: tables.create() does not expose primary column logical name, causing CRUD payload confusion · Issue #148 · microsoft/PowerPlatform-DataverseClient-Python · GitHub

Open Graph Title: tables.create() does not expose primary column logical name, causing CRUD payload confusion · Issue #148 · microsoft/PowerPlatform-DataverseClient-Python

X Title: tables.create() does not expose primary column logical name, causing CRUD payload confusion · Issue #148 · microsoft/PowerPlatform-DataverseClient-Python

Description: Summary When using tables.create() to create custom tables and then dataframe.create() to populate records, it is unclear what column logical names to use in the record payload. The SDK's tables.create() documentation does not specify th...

Open Graph Description: Summary When using tables.create() to create custom tables and then dataframe.create() to populate records, it is unclear what column logical names to use in the record payload. The SDK's tables.cr...

X Description: Summary When using tables.create() to create custom tables and then dataframe.create() to populate records, it is unclear what column logical names to use in the record payload. The SDK's table...

Opengraph URL: https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tables.create() does not expose primary column logical name, causing CRUD payload confusion","articleBody":"## Summary\r\n\r\nWhen using `tables.create()` to create custom tables and then `dataframe.create()` to populate records, it is unclear what column logical names to use in the record payload. The SDK's `tables.create()` documentation does not specify the resulting logical names that Dataverse assigns, leading to confusion and 400 errors.\r\n\r\n## Problem\r\n\r\nAfter calling `tables.create(\"demo_abc123_Customer\", {\"demo_abc123_Customer_Revenue\": \"money\"})`, the resulting column's **schema name** is `demo_abc123_Customer_Revenue`, but the **logical name** (used in CRUD payloads, `$select`, `$filter`, etc.) is `demo_abc123_customer_revenue` (fully lowercased).\r\n\r\nHowever, the default **primary column** created automatically has schema name `demo_abc123_Name` with logical name `demo_abc123_name` -- NOT `demo_abc123_customer_name`. The prefix for the primary column is the **customization prefix** extracted from the table schema name, not the full table name.\r\n\r\nThis means:\r\n- Custom columns defined by the user: logical name = lowercase of passed schema name (e.g., `demo_abc123_customer_revenue`)\r\n- Default primary column: logical name = `{customization_prefix}_name` (e.g., `demo_abc123_name`)\r\n- There is no documentation or return value from `tables.create()` that tells the user what primary column logical name was created\r\n\r\n## Steps to Reproduce\r\n\r\n```python\r\nfrom PowerPlatform.Dataverse.client import DataverseClient\r\n\r\nwith DataverseClient(url, credential) as client:\r\n    # Step 1: Create table\r\n    result = client.tables.create(\r\n        \"demo_abc123_Customer\",\r\n        {\"demo_abc123_Customer_Revenue\": \"money\"},\r\n    )\r\n\r\n    # Step 2: Try to create a record -- what is the name column called?\r\n    import pandas as pd\r\n    df = pd.DataFrame([{\r\n        \"demo_abc123_Customer_name\": \"Contoso\",  # WRONG - 400 error\r\n        # \"demo_abc123_name\": \"Contoso\",  # CORRECT - but not obvious\r\n        \"demo_abc123_Customer_Revenue\": 5000000,\r\n    }])\r\n    client.dataframe.create(\"demo_abc123_Customer\", df)\r\n    # Error: Invalid property 'demo_abc123_customer_name'\r\n```\r\n\r\n## Expected Behavior\r\n\r\nEither:\r\n1. **`tables.create()` should return the primary column logical name** in its response (the `TableInfo` already has `columns_created` but it doesn't include the auto-created primary column)\r\n2. **Documentation should clearly state** that the primary column logical name follows the pattern `{customization_prefix}_name` where the prefix is extracted from the table schema name\r\n3. **Consider adding a `primary_column_name` field** to the `TableInfo` return type\r\n\r\n## Actual Behavior\r\n\r\n- `tables.create()` returns `TableInfo` with `columns_created` listing only explicitly defined columns, not the auto-created primary name column\r\n- No documentation explains the primary column naming convention\r\n- Users have to query entity metadata (`EntityDefinitions`) to discover the primary column logical name\r\n\r\n## Related Issues\r\n\r\n- #76 (Better data type specification) -- related to column definition UX\r\n- #77 (@odata.bind problem with same column and table names) -- related to column naming confusion\r\n\r\n## Context\r\n\r\nDiscovered while building the pro-dev quick start example (`examples/advanced/prodev_quick_start.py`) which creates 4 custom tables and populates them via `client.dataframe.create()`. The example could not reliably construct record payloads because the primary column logical name was not discoverable from the SDK.\r\n\r\n## Suggested Fix\r\n\r\n1. Include the primary column logical name in `TableInfo.columns_created` (or a new `primary_column` field)\r\n2. Add a note in `tables.create()` docstring explaining: \"The default primary column logical name is `{prefix}_name` where `{prefix}` is the customization prefix from the table schema name\"\r\n3. Consider a `tables.get_columns(table_name)` convenience method that returns column metadata including logical names\r\n","author":{"url":"https://github.com/saurabhrb","@type":"Person","name":"saurabhrb"},"datePublished":"2026-03-17T16:33:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/148/PowerPlatform-DataverseClient-Python/issues/148"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:52fa530a-dedb-af7d-a0af-ec045ff1205c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCF6C:1B0B8D:153408:1D504D:6A4D17DF
html-safe-nonce0d87cb5f3c9fe767fb0beb056fe9cb47e772ba79a56c6085912baec3a2cb593b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjZDOjFCMEI4RDoxNTM0MDg6MUQ1MDREOjZBNEQxN0RGIiwidmlzaXRvcl9pZCI6IjgyODY4MTQyMTQ1NTY1NTUyMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac48273893cf37a035e979cbf3fc28e72acc580e9b70e84d45ce9e2a29b264a341
hovercard-subject-tagissue:4089712914
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/PowerPlatform-DataverseClient-Python/148/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f77286ab9d4d3e051eaf2c618f6f6b1e9fc6c1c9719c20831085ba3cc368ae35/microsoft/PowerPlatform-DataverseClient-Python/issues/148
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f77286ab9d4d3e051eaf2c618f6f6b1e9fc6c1c9719c20831085ba3cc368ae35/microsoft/PowerPlatform-DataverseClient-Python/issues/148
og:image:altSummary When using tables.create() to create custom tables and then dataframe.create() to populate records, it is unclear what column logical names to use in the record payload. The SDK's tables.cr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesaurabhrb
hostnamegithub.com
expected-hostnamegithub.com
Nonebcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/PowerPlatform-DataverseClient-Python git https://github.com/microsoft/PowerPlatform-DataverseClient-Python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id1042273116
octolytics-dimension-repository_nwomicrosoft/PowerPlatform-DataverseClient-Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1042273116
octolytics-dimension-repository_network_root_nwomicrosoft/PowerPlatform-DataverseClient-Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fissues%2F148
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fissues%2F148
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FPowerPlatform-DataverseClient-Python
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148
microsoft https://github.com/microsoft
PowerPlatform-DataverseClient-Pythonhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python
Fork 22 https://github.com/login?return_to=%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python
Star 56 https://github.com/login?return_to=%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python
Code https://github.com/microsoft/PowerPlatform-DataverseClient-Python
Issues 6 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues
Pull requests 14 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pulls
Actions https://github.com/microsoft/PowerPlatform-DataverseClient-Python/actions
Projects https://github.com/microsoft/PowerPlatform-DataverseClient-Python/projects
Models https://github.com/microsoft/PowerPlatform-DataverseClient-Python/models
Security and quality 0 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/security
Insights https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pulse
Code https://github.com/microsoft/PowerPlatform-DataverseClient-Python
Issues https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues
Pull requests https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pulls
Actions https://github.com/microsoft/PowerPlatform-DataverseClient-Python/actions
Projects https://github.com/microsoft/PowerPlatform-DataverseClient-Python/projects
Models https://github.com/microsoft/PowerPlatform-DataverseClient-Python/models
Security and quality https://github.com/microsoft/PowerPlatform-DataverseClient-Python/security
Insights https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pulse
#98https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/98
tables.create() does not expose primary column logical name, causing CRUD payload confusionhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148#top
#98https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/98
enhancementNew feature or requesthttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/saurabhrb
saurabhrbhttps://github.com/saurabhrb
on Mar 17, 2026https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/148#issue-4089712914
Better data type specification #76https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/76
@odata.bind problem with same column and table names #77https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/77
enhancementNew feature or requesthttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.