Skip to content

Conversation

@zhaodongwang-msft
Copy link
Collaborator

This pull request adds support for associating newly created tables with a specific solution in the Dataverse SDK, rather than always using the default solution. This is achieved by introducing an optional solution_unique_name parameter to the create_table method and propagating this through the relevant layers of the codebase. Documentation and usage examples have also been updated to reflect this new capability.

API and Functionality Enhancements:

  • Added an optional solution_unique_name parameter to the create_table method in client.py, allowing users to specify which solution should own the new custom table. This parameter is validated to ensure it is a non-empty string if provided. [1] [2] [3] [4] [5]

  • Updated the lower-level _create_entity and _create_table methods in odata.py to accept and correctly use the solution_unique_name parameter, passing it as a query parameter in the API request if specified. [1] [2] [3] [4]

Documentation Updates:

  • Updated the README.md to document the new solution_unique_name parameter for create_table, including an example usage showing how to associate a table with a specific solution. [1] [2]

Copilot AI review requested due to automatic review settings November 5, 2025 18:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for associating newly created custom tables with a specific solution in Dataverse by introducing an optional solution_unique_name parameter to the create_table method.

  • Added solution_unique_name parameter to create_table and _create_entity methods
  • Added input validation to ensure solution_unique_name is a non-empty string when provided
  • Updated documentation and examples to demonstrate the new parameter

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/dataverse_sdk/odata.py Added solution_unique_name parameter to _create_entity and _create_table methods with validation logic
src/dataverse_sdk/client.py Added solution_unique_name parameter to public create_table method with updated docstring
README.md Updated API reference table and example to document the new solution_unique_name parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zhaodongwang-msft zhaodongwang-msft merged commit fe72421 into main Nov 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants