René's URL Explorer Experiment


Title: Feature Request: Support OData Deep Inserts in create() and upsert() · Issue #149 · microsoft/PowerPlatform-DataverseClient-Python · GitHub

Open Graph Title: Feature Request: Support OData Deep Inserts in create() and upsert() · Issue #149 · microsoft/PowerPlatform-DataverseClient-Python

X Title: Feature Request: Support OData Deep Inserts in create() and upsert() · Issue #149 · microsoft/PowerPlatform-DataverseClient-Python

Description: Summary Add support for OData deep inserts in client.records.create() and client.records.upsert(), allowing parent and related child records to be created/upserted in a single API call. Motivation When importing data that involves a pare...

Open Graph Description: Summary Add support for OData deep inserts in client.records.create() and client.records.upsert(), allowing parent and related child records to be created/upserted in a single API call. Motivation ...

X Description: Summary Add support for OData deep inserts in client.records.create() and client.records.upsert(), allowing parent and related child records to be created/upserted in a single API call. Motivation ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Support OData Deep Inserts in create() and upsert()","articleBody":"## Summary\n\nAdd support for [OData deep inserts](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/create-entity-web-api#create-related-table-rows-in-one-operation) in `client.records.create()` and `client.records.upsert()`, allowing parent and related child records to be created/upserted in a single API call.\n\n## Motivation\n\nWhen importing data that involves a parent record and its related child records (e.g. via one-to-many relationships), the current SDK requires separate API calls for each table — first creating the parent, then creating each child record individually with a foreign key reference back to the parent. This is both verbose and inefficient, especially for bulk import scenarios.\n\nThe Dataverse Web API already natively supports deep inserts, where related records can be nested inside the parent payload using navigation property names. For example:\n\n```json\n{\n  \"name\": \"Sample Account\",\n  \"primarycontactid\": {\n    \"firstname\": \"John\",\n    \"lastname\": \"Smith\"\n  },\n  \"contact_customer_accounts\": [\n    { \"firstname\": \"Jane\", \"lastname\": \"Doe\" },\n    { \"firstname\": \"Bob\", \"lastname\": \"Jones\" }\n  ]\n}\n```\n\nThe SDK does not currently surface this capability. Attempting to pass nested dicts/lists in the record payload will not work correctly because `_create()` lowercases all keys via `_lowercase_keys()`, which breaks case-sensitive navigation property names.\n\n## Proposed Behavior\n\nAllow `create()` and `upsert()` to accept nested dicts (for single-valued navigation properties) and lists of dicts (for collection-valued navigation properties) within the record payload. Navigation property keys should be preserved as-is (case-sensitive) and not lowercased.\n\n**Example usage:**\n\n```python\n# Deep insert: create parent + children in one call\nclient.records.create(\"account\", {\n    \"name\": \"Contoso Ltd\",\n    \"primarycontactid\": {\n        \"firstname\": \"John\",\n        \"lastname\": \"Smith\"\n    },\n    \"contact_customer_accounts\": [\n        {\"firstname\": \"Jane\", \"lastname\": \"Doe\"},\n        {\"firstname\": \"Bob\", \"lastname\": \"Jones\"},\n    ]\n})\n```\n\n## Current Workaround\n\nCreate parent and child records in separate calls, manually managing the foreign key references:\n\n```python\nparent_id = client.records.create(\"account\", {\"name\": \"Contoso Ltd\"})\n\nclient.records.create(\"contact\", {\n    \"firstname\": \"Jane\",\n    \"lastname\": \"Doe\",\n    \"parentcustomerid_account@odata.bind\": f\"/accounts({parent_id})\"\n})\n```\n\n## Additional Context\n\n- The Dataverse Web API documentation confirms deep insert support for both `POST` (create) and `PATCH` (upsert) operations.\n- The `_lowercase_keys()` call in `_create()` would need to distinguish between column names (which should be lowercased) and navigation property names (which are case-sensitive and should be preserved).\n- `CreateMultiple` / `UpsertMultiple` bulk operations may also benefit from this, depending on API support for deep inserts in batch payloads.\n","author":{"url":"https://github.com/JDziurlaj","@type":"Person","name":"JDziurlaj"},"datePublished":"2026-03-17T17:55:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/149/PowerPlatform-DataverseClient-Python/issues/149"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:52bd597a-b1a7-e8f7-3506-f66ca0daa01c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD5BC:2A5CAA:25AE67F:366AB8C:6A4D1C04
html-safe-nonce28dec0bff7ec04b6b6aa488b4c78c5a17a94e008259359b5942ba2060b262af4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUJDOjJBNUNBQToyNUFFNjdGOjM2NkFCOEM6NkE0RDFDMDQiLCJ2aXNpdG9yX2lkIjoiMjQzMjMyMDExMjcxMzA3OTgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac076b565313c4c2fd72123c199ef8e59927121d53772aaabfe8e7a702c46090de
hovercard-subject-tagissue:4090199453
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/149/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f6642e811d09dfed03530ee6c483a8c92c39a925f4009cf6cc73e39fd7e2f0e0/microsoft/PowerPlatform-DataverseClient-Python/issues/149
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f6642e811d09dfed03530ee6c483a8c92c39a925f4009cf6cc73e39fd7e2f0e0/microsoft/PowerPlatform-DataverseClient-Python/issues/149
og:image:altSummary Add support for OData deep inserts in client.records.create() and client.records.upsert(), allowing parent and related child records to be created/upserted in a single API call. Motivation ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJDziurlaj
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/149#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fissues%2F149
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%2F149
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/149
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/149
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/149
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/149
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
Feature Request: Support OData Deep Inserts in create() and upsert()https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/149#top
https://github.com/sagebree
enhancementNew feature or requesthttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/JDziurlaj
JDziurlajhttps://github.com/JDziurlaj
on Mar 17, 2026https://github.com/microsoft/PowerPlatform-DataverseClient-Python/issues/149#issue-4090199453
OData deep insertshttps://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/create-entity-web-api#create-related-table-rows-in-one-operation
sagebreehttps://github.com/sagebree
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.