René's URL Explorer Experiment


Title: Add alternate key management for upsert support by tpellissier-msft · Pull Request #126 · microsoft/PowerPlatform-DataverseClient-Python · GitHub

Open Graph Title: Add alternate key management for upsert support by tpellissier-msft · Pull Request #126 · microsoft/PowerPlatform-DataverseClient-Python

X Title: Add alternate key management for upsert support by tpellissier-msft · Pull Request #126 · microsoft/PowerPlatform-DataverseClient-Python

Description: Summary Adds AlternateKeyInfo dataclass model in new models/table_info.py for typed alternate key metadata Adds three OData layer methods (_create_alternate_key, _get_alternate_keys, _delete_alternate_key) to _odata.py Adds three public operations (create_alternate_key, get_alternate_keys, delete_alternate_key) to TableOperations in tables.py Enables programmatic setup of alternate keys required for upsert operations Test plan Unit tests for AlternateKeyInfo.from_api_response with full, minimal, partial, and multi-column data Unit tests for default values and independent mutable defaults on AlternateKeyInfo Unit test for create_alternate_key calls OData layer correctly and returns AlternateKeyInfo Unit test for create_alternate_key with multi-column keys Unit test for get_alternate_keys returns list of AlternateKeyInfo from API response Unit test for get_alternate_keys returns empty list when no keys exist Unit test for delete_alternate_key calls OData layer with correct args All 198 unit tests pass (python -m pytest tests/unit/ -v) Code formatted with python -m black 🤖 Generated with Claude Code

Open Graph Description: Summary Adds AlternateKeyInfo dataclass model in new models/table_info.py for typed alternate key metadata Adds three OData layer methods (_create_alternate_key, _get_alternate_keys, _delete_alter...

X Description: Summary Adds AlternateKeyInfo dataclass model in new models/table_info.py for typed alternate key metadata Adds three OData layer methods (_create_alternate_key, _get_alternate_keys, _delete_alter...

Opengraph URL: https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ad7cc5c3-9090-c5fa-9ced-2042afa5efae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA6C6:3415D:E04AE9:12FD012:6A4D5D82
html-safe-nonce84a25901b07ba35e290f604218b3f9c00b3625e544e318e8e8d1dc5eb6161ab0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkM2OjM0MTVEOkUwNEFFOToxMkZEMDEyOjZBNEQ1RDgyIiwidmlzaXRvcl9pZCI6IjQwMjM4NTY2NjEyNzM1OTkzNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacedd5b0888c99ddc40eeeaec7f9f55f427bcc05136a616f223afca2afd5dc1cd9
hovercard-subject-tagpull_request:3333005066
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
twitter:imagehttps://avatars.githubusercontent.com/u/227695833?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/227695833?s=400&v=4
og:image:altSummary Adds AlternateKeyInfo dataclass model in new models/table_info.py for typed alternate key metadata Adds three OData layer methods (_create_alternate_key, _get_alternate_keys, _delete_alter...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3bdd3157ea1f0fd738d408eceeead721acf1dc3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fpull%2F126%2Ffiles
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%2Fpull%2F126%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2FPowerPlatform-DataverseClient-Python
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Reloadhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2FPowerPlatform-DataverseClient-Python%2Fissues%2Fnew%2Fchoose
tpellissier-msfthttps://github.com/tpellissier-msft
mainhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/tree/main
feature/alternate-keyshttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/tree/feature/alternate-keys
Conversation 7 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126
Commits 14 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits
Checks 9 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/checks
Files changed https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Add alternate key management for upsert support https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#top
Show all changes 14 commits https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
1799439 Add alternate key management (create, get, delete) for upsert support tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/179943976a64cb83727996b080ab864dd4a22a09
835976f Add alternate keys + upsert E2E example tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/835976f174973cd65d750a4dafd9cc581f013e87
65d18f1 Fix alternate key creation: include required DisplayName in payload tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/65d18f12607aa22465248e1d9c53bcf176d6c132
cec9f3f Make create_alternate_key prod-ready: use Label model, add display_na… tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/cec9f3f27aeeb15abb22eaca17656e48d2dbc25d
30a0626 Split example into single + bulk upsert steps for clearer diagnostics tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/30a0626880ae93aa29059145e25635243b48339f
756a005 Use single upserts in example (UpsertMultiple has a known issue) tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/756a0059b56c9fbcfce60ec6e51e810753ba6945
e77531a Add UpsertMultiple diagnostic step to example tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/e77531a1f5bd028c992afa082fcf4142d0650d55
cfc2056 Fix UpsertMultiple: don't merge alternate key fields into request body tpellissier Feb 26, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/cfc2056d23f94f3382fc844229bc218c1d522f09
5b9b411 Remove UpsertMultiple debug wrapper from example tpellissier Feb 27, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/5b9b4117f42eb5cac48b11986bd731a2dfd63084
1ff795e Align upsert fix with hotfix branch, add multi-update path to example tpellissier Feb 27, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/1ff795e5f22f2436e11550395c15f7c45c64a25c
6ceb1ed Set status='Pending' on newly created AlternateKeyInfo tpellissier Feb 27, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/6ceb1ed5487f0a480711a902047ba51a200a570b
a3c6e55 Merge branch 'main' into feature/alternate-keys tpellissier-msft Mar 3, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/a3c6e5511e6191fd3edfd8737b830dcd74cd6c98
50c0c67 Add status assertion to create_alternate_key test tpellissier Mar 5, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/50c0c67701a6feb197ab2dd54f6475900e7b5b02
c8182c4 Merge main into feature/alternate-keys tpellissier Mar 5, 2026 https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/commits/c8182c4ebae75fb11a7b51696991d08d5a26cdaf
Clear filters https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
alternate_keys_upsert.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-e621d8546b48ba7ee0dad91b2549834a5cca7c9f944054202e8320718e162888
_odata.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-c1120599879ef5810164b564adc3d93854c879537eff3c4df1924fdcf5974d7d
table_info.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-76321090327a0f7592cf0bf822b869e0b5b02048d627543771fe71ab97fd88c2
tables.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-7e3601f1a8bf8b9f8cd1cd4dc5f04969292f981795e9017923cc971041431ede
test_alternate_key.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-d68bfe5e3400c2db8c902fda5d4d2754cc73474a96b217133eb3d20df3be387d
test_tables_operations.py https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-0d2f64f2ab1e3c4cba1398efd01e91f2d634237969848b9a97d37dd8fde62055
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/main/CODEOWNERS#L6
examples/advanced/alternate_keys_upsert.pyhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-e621d8546b48ba7ee0dad91b2549834a5cca7c9f944054202e8320718e162888
View file https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/c8182c4ebae75fb11a7b51696991d08d5a26cdaf/examples/advanced/alternate_keys_upsert.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/{{ revealButtonHref }}
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/main/CODEOWNERS#L6
src/PowerPlatform/Dataverse/data/_odata.pyhttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-c1120599879ef5810164b564adc3d93854c879537eff3c4df1924fdcf5974d7d
View file https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/c8182c4ebae75fb11a7b51696991d08d5a26cdaf/src/PowerPlatform/Dataverse/data/_odata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/{{ revealButtonHref }}
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-c1120599879ef5810164b564adc3d93854c879537eff3c4df1924fdcf5974d7d
https://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files#diff-c1120599879ef5810164b564adc3d93854c879537eff3c4df1924fdcf5974d7d
Please reload this pagehttps://github.com/microsoft/PowerPlatform-DataverseClient-Python/pull/126/files
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.