Add Microsoft Dataverse DirectConnector samples#63
Merged
Conversation
Use query parameters for Dataverse environment URLs because encoded slash values return HTTP 404 when bound through Azure Functions route parameters. Co-authored-by: Dobby <dobby@microsoft.com>
There was a problem hiding this comment.
Pull request overview
Updates the DirectConnector Azure Functions sample app to use Azure.Connectors.Sdk 0.13.0-preview.1 and adds an end-to-end Microsoft Dataverse sample demonstrating environment/table discovery and CRUD operations through the generated connector client.
Changes:
- Added
DataverseFunctionswith discovery + table/record list, get, create, update, and delete endpoints using query parameters forenvironmentandtableName. - Registered
CommondataserviceClientinProgram.cs, supporting DefaultAzureCredential (dev) plus system/user-assigned managed identity via configuration. - Updated documentation and local settings template to include Dataverse connection placeholders, and bumped the SDK package version.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds Dataverse sample to the top-level sample list. |
| DirectConnector/README.md | Documents Dataverse endpoints, configuration, and example invocations. |
| DirectConnector/Program.cs | Registers CommondataserviceClient with DI and managed-identity/TokenCredential selection logic. |
| DirectConnector/local.settings.json.template | Adds Dataverse connection runtime URL and MSI placeholder settings. |
| DirectConnector/DirectConnector.csproj | Bumps Azure.Connectors.Sdk to 0.13.0-preview.1. |
| DirectConnector/DataverseFunctions.cs | Introduces Dataverse discovery + CRUD Azure Functions using the generated client. |
Use ConnectorTriggerPayload for the Office 365 OnNewEmail callback so metadata trigger bodies are bounded and deserialized case-insensitively. Co-authored-by: Dobby <dobby@microsoft.com>
Covers CreateAttachmentAsync and GetNextPageAsync, and adds SharePoint GetDataSetsAsync discovery to prevent dependent calls with placeholder values. Co-authored-by: Dobby <dobby@microsoft.com>
Returns 400 for malformed JSON and invalid $top values, with regression coverage for create and update bodies. Co-authored-by: Dobby <dobby@microsoft.com>
Add query/schema and temporary resource-group lifecycle samples with E2E validation guidance. Co-authored-by: Dobby <dobby@microsoft.com>
hallvictoria
approved these changes
Jul 13, 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
Updates the DirectConnector Azure Functions samples to consume
Azure.Connectors.Sdk0.13.0-preview.1, demonstrate the generated Microsoft Dataverse client, and use the SDK'sConnectorTriggerPayloadhelper for a typed Office 365 trigger callback.Changes
CommondataserviceClientwithDefaultAzureCredential, system-assigned managed identity, and user-assigned managed identity support.OnNewEmailcallback buffering/deserialization with bounded, case-insensitiveConnectorTriggerPayload.ReadAsynchandling.Validation
dotnet build Connectors-NET-Samples.sln --configuration Release- 0 warnings, 0 errors.dotnet test Connectors-NET-Samples.sln --configuration Release --no-build- 46/46 passed.ConnectorTriggerPayloadwith a Connector Gateway-shaped Office 365OnNewEmailcallback payload.Checklist