How microsoft/powerapps-samples works
This repository is a collection of Power Apps samples, not one integrated application. A representative runtime path is a sample client obtaining configuration and an access token, using the Dataverse Web API service to issue operations, and consuming returned records. The README also identifies Dataverse, model-driven apps, canvas apps, PCF, portals, and AI Builder as sample areas; the supplied tree exposes substantial PCF, Dataverse, and portal code. Some broad sample areas are documented but not present in the supplied tree. Edges are limited to relationships visible in excerpts or stated by the README.
Main entry points: Service.cs HTTP service · App.cs Sample client app · component-framework PCF controls · AuthorizeEndpoint.js Portal authorization
Components 27
Dataverse Web API
- Sample client app
dataverse/webapi/CSharp-NETx/App.cs - Token acquisition
dataverse/webapi/CSharp-NETx/App.cs - Service configuration
dataverse/webapi/CSharp-NETx/WebAPIService/Config.cs - HTTP service
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - Entity references
dataverse/webapi/CSharp-NETx/WebAPIService/EntityReference.cs - Create records
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Create.cs - Retrieve records
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Retrieve.cs - Query records
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/RetrieveMultiple.cs - Update records
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Update.cs - Delete records
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Delete.cs - Typed responses
dataverse/webapi/CSharp-NETx/WebAPIService/Extensions.cs - Identity request
dataverse/webapi/CSharp-NETx/WebAPIService/Messages/WhoAmIRequest.cs - Identity response
dataverse/webapi/CSharp-NETx/WebAPIService/Messages/WhoAmIResponse.cs
Dataverse SDK samples
- Organization service examples
dataverse/orgsvc/CSharp-NETCore - Column security sample
dataverse/orgsvc/CSharp-NETCore/ColumnLevelSecurity/Examples.cs - Environment discovery
dataverse/DiscoveryService
Component framework
- PCF controls
component-framework - Grid controls
component-framework/CanvasGridControl/CanvasGrid/Grid.tsx - Code interpreter control
component-framework/CodeInterpreterControl/CodeInterpreterControl
Portal samples
- Portal authorization
portals/AuthorizeEndpoint.js - Portal Web API control
portals/PortalWebAPIControl/PortalWebAPIControl/index.ts - External API sample
portals/ExternalWebApiConsumingPortalOAuthTokenSample/ExternalWebApiConsumingPortalOAuthTokenSample/Controllers/ExternalWebApiController.cs
Metadata tooling
- Metadata visualizer
dataverse/Metadata-Visualizer/frmMain.cs - Metadata operations
dataverse/webapi/CSharp-NETx/MetadataOperations/Program.cs
Other components
- Sample developer
- Dataverse environment
- Power Apps platform
Connections 25
- Sample developer → Sample client app: runs sample
README.md - Sample client app → Token acquisition: acquires token
dataverse/webapi/CSharp-NETx/App.cs - Sample client app → Service configuration: builds config
dataverse/webapi/CSharp-NETx/App.cs - HTTP service → Service configuration: uses config
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - HTTP service → Token acquisition: gets token
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - HTTP service → Dataverse environment: sends requests
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - HTTP service → Identity request: sends request
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - HTTP service → Identity response: parses response
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - Create records → HTTP service: calls send
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Create.cs - Retrieve records → HTTP service: calls send
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Retrieve.cs - Query records → HTTP service: calls send
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/RetrieveMultiple.cs - Update records → HTTP service: calls send
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Update.cs - Delete records → HTTP service: calls send
dataverse/webapi/CSharp-NETx/WebAPIService/Methods/Delete.cs - HTTP service → Typed responses: converts response
dataverse/webapi/CSharp-NETx/WebAPIService/Service.cs - Column security sample → Dataverse environment: demonstrates security
- Organization service examples → Dataverse environment: demonstrates operations
- Environment discovery → Dataverse environment: discovers instances
- Metadata operations → Dataverse environment: uses metadata
- Metadata visualizer → Dataverse environment: visualizes metadata
- Power Apps platform → PCF controls: hosts controls
README.md - PCF controls → Grid controls: includes grids
- PCF controls → Code interpreter control: includes interpreter
- Power Apps platform → Portal authorization: includes portal samples
README.md - Portal authorization → Portal Web API control: supports API control
- External API sample → Dataverse environment: consumes platform API