{{ message }}
Allow passing display_name parameter when creating tables#164
Merged
abelmilash-msft merged 8 commits intomainfrom Apr 23, 2026
Merged
Allow passing display_name parameter when creating tables#164abelmilash-msft merged 8 commits intomainfrom
abelmilash-msft merged 8 commits intomainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…patch Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new optional display_name parameter to table-creation APIs so callers can set a human-friendly Dataverse table display name instead of being forced to use the schema name (default behavior remains unchanged when omitted).
Changes:
- Extend
client.tables.create()andbatch.tables.create()to accept optionaldisplay_nameand forward it through internal layers. - Update
_ODataClient._create_table()and_ODataClient._build_create_entity()to use the provided display name (falling back to schema name). - Add/adjust unit tests to cover payload construction and forwarding for both direct and batch creation paths.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ss fallback Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…pe+empty check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d _build_create_entity Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…coverage Adds 12 tests covering HTTP structure (method, URL, solution query param), payload fields (SchemaName, OwnershipType, Description), primary column derivation (prefix, explicit, no-underscore default), column inclusion, and unsupported column type error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
b9f13b2 to
bf45a33
Compare
sagebree
reviewed
Apr 22, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sagebree
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
display_nameparameter toclient.tables.create(),batch.tables.create(), and the internal_create_table/_build_create_entitymethodsTests
TestBuildCreateEntity— direct payload tests for_build_create_entitywith and withoutdisplay_nametest_dispatch_table_create_forwards_display_name— verifies batch path forwards the valuetest_display_name_used_in_payload_when_provided/test_display_name_defaults_to_schema_name— verifies_create_tablebehaviorCloses #163