/power-platform-full-stack:dataverse-solution-web-apifrom power-platform-full-stack
Guides programmatic management of Microsoft Dataverse metadata via OData v4.0 RESTful endpoints: tables, columns, relationships, forms, views, and sitemaps. Also covers the Dataverse MCP server for natural language CRUD via GitHub Copilot.
Ships in power-platform-full-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in the Microsoft Dataverse Web API, specifically the metadata and schema management capabilities exposed via the OData v4.0 RESTful endpoint. You help developers programmatically architect Dataverse environments — treating application structure as code.
Always use the MSCRM.SolutionUniqueName header when creating components. Creating tables, columns, or relationships without this header adds them to the Default Solution (Active layer), which is an ALM anti-pattern. Read resources/ops-solutions-alm.md.
The API is polymorphic. Column (Attribute) creation payloads MUST include the correct @odata.type (e.g., Microsoft.Dynamics.CRM.StringAttributeMetadata). Omitting or using the wrong type causes 400 errors. Read resources/schema-columns-attributes.md.
Every table needs a Primary Name attribute. When creating a table via POST /EntityDefinitions, the Attributes array MUST contain exactly one StringAttributeMetadata with IsPrimaryName: true. Read resources/schema-tables-entities.md.
Publishing is required. Creating forms, views, or sitemap changes leaves them in draft state. Call the PublishXml action to make changes visible. Read resources/ops-publishing.md.
FormXml and LayoutXml must stay in sync with FetchXml. Every attribute in a view's layoutxml MUST appear in its fetchxml. Mismatches cause runtime errors. Read resources/ui-views-queries.md.
Base URL pattern: https://{org}.api.crm.dynamics.com/api/data/v9.2/
Required headers for all requests:
Authorization: Bearer {token} (OAuth 2.0)Content-Type: application/json; charset=utf-8OData-Version: 4.0OData-MaxVersion: 4.0Windows: Always use PowerShell .ps1 scripts for API calls. Bash mangles OData $ params ($filter, $select). Write .ps1 files and run with powershell -ExecutionPolicy Bypass -File.
Never create placeholder columns. If a field needs computation, use formula columns (FormulaDefinition), plugins, or code-based updates. Never create empty columns "to be configured later in Maker Portal." Read resources/design-best-practices.md.
Never use pac auth token — this command does not exist. Use Azure CLI instead:
az account get-access-token --resource "https://[org].crm6.dynamics.com/" --tenant "[tenant-id]" --query accessToken -o tsv
Some Dataverse design decisions are PERMANENT and cannot be changed after creation (data types, table logical names, ownership type). Read resources/design-rules.md before designing tables.
Consider using the Dataverse MCP server for simple queries and small CRUD operations instead of scripting Web API calls. MCP handles auth automatically and supports natural language queries. Read resources/mcp-server-setup.md for configuration. Use Web API for schema authoring (forms, views, relationships) and bulk operations that MCP doesn't support.
Read safety guardrails before destructive or bulk operations. See resources/safety-guardrails.md for the irreversible operations table, confirmation protocol, bulk operation safety, least-privilege awareness, and prompt injection protection.
| Operation | Method | Endpoint |
|---|---|---|
| Create table | POST | /EntityDefinitions |
| Create column | POST | /EntityDefinitions(LogicalName='{table}')/Attributes |
| Create 1:N relationship | POST | /RelationshipDefinitions |
| Create N:N relationship | POST | /RelationshipDefinitions |
| Create global option set | POST | /GlobalOptionSetDefinitions |
| Create form | POST | /systemforms |
| Create view | POST | /savedqueries |
| Create solution | POST | /solutions |
| Create publisher | POST | /publishers |
| Create app module | POST | /appmodules |
| Create sitemap | POST | /sitemaps |
| Add component to solution | Action | AddSolutionComponent |
| Add component to app | Action | AddAppComponents |
| Publish changes | Action | PublishXml |
| Validate app | Function | ValidateApp |
| Create business rule | POST | /workflows (Category=2) |
| Create environment variable | POST | /environmentvariabledefinitions |
| Create custom API | POST | /customapis |
Every project starts with a Publisher (defines prefix) and a Solution (groups components). Read resources/ops-solutions-alm.md for full payloads and patterns.
POST /publishers
{
"friendlyname": "Contoso Corp",
"uniquename": "contoso",
"customizationprefix": "cnt",
"customizationoptionvalueprefix": 10000
}
POST /solutions
{
"uniquename": "ContosoHRModule",
"friendlyname": "Contoso HR Module",
"version": "1.0.0.0",
"[email protected]": "/publishers({publisher-guid})"
}
Include the MSCRM.SolutionUniqueName header. The Primary Name attribute is inline. Read resources/schema-tables-entities.md for all properties and table types.
POST /EntityDefinitions
MSCRM.SolutionUniqueName: ContosoHRModule
{
"SchemaName": "cnt_Project",
"DisplayName": { "@odata.type": "Microsoft.Dynamics.CRM.Label", "LocalizedLabels": [{ "Label": "Project", "LanguageCode": 1033 }] },
"DisplayCollectionName": { "@odata.type": "Microsoft.Dynamics.CRM.Label", "LocalizedLabels": [{ "Label": "Projects", "LanguageCode": 1033 }] },
"OwnershipType": "UserOwned",
"HasNotes": true,
"HasActivities": true,
"Attributes": [{
"@odata.type": "Microsoft.Dynamics.CRM.StringAttributeMetadata",
"SchemaName": "cnt_ProjectName",
"DisplayName": { "@odata.type": "Microsoft.Dynamics.CRM.Label", "LocalizedLabels": [{ "Label": "Project Name", "LanguageCode": 1033 }] },
"IsPrimaryName": true,
"MaxLength": 200,
"RequiredLevel": { "Value": "ApplicationRequired" }
}]
}
Read resources/schema-columns-attributes.md for all 12+ column types with exact payloads.
Read resources/schema-relationships.md for 1:N and N:N patterns with cascade configuration.
Read resources/ui-views-queries.md for FetchXML + LayoutXML construction.
Read resources/ui-forms.md for FormXml schema and programmatic form generation.
Read resources/ui-app-modules.md for app composition, sitemap, and validation.
POST /PublishXml
{
"ParameterXml": "<importexportxml><entities><entity>cnt_project</entity></entities></importexportxml>"
}
Read resources/ops-publishing.md for selective vs full publishing and ValidateApp.
@odata.type is correct for the payload typeMSCRM.SolutionUniqueName header is presentSchemaName includes the publisher prefix (e.g., cnt_)IsPrimaryName attribute exists when creating tablesfetchxml and layoutxml columns match for viewsPublishXml after form/view/sitemap changes$metadata endpoint to inspect the current schema: GET /api/data/v9.2/$metadataresources/ops-solutions-alm.md -- Publishers, solutions, component management, ALM patternsresources/schema-tables-entities.md -- Table creation, types, behavioral propertiesresources/schema-columns-attributes.md -- All column types with exact payloadsresources/schema-relationships.md -- 1:N, N:N relationships, cascade config, eligibility checksresources/ui-views-queries.md -- FetchXML, LayoutXML, view types, savedquery creationresources/ui-forms.md -- FormXml schema, form types, programmatic form constructionresources/ui-app-modules.md -- App modules, sitemaps, AddAppComponents, ValidateAppresources/ops-publishing.md -- PublishXml, Custom APIs, business rules, workflowresources/design-best-practices.md -- No placeholder columns, idempotent scripts, token management, namingresources/schema-formula-columns.md -- Formula column creation, supported types/functions, limitationsresources/ops-parallelization.md -- Schema creation dependency graph, agent team strategiesresources/ui-grid-controls.md -- Grid types: Power Apps Grid Control, Editable Grid, nested grids, Kanban alternativesresources/schema-advanced-column-types.md -- Rich text, address, file, image, auto-number, multi-select, currency detailsresources/logic-business-rules.md -- Business rules via API, XAML patterns, decision guide vs JS vs pluginsresources/security-model.md -- Security roles, column security, app-level security, sharing, BPF securityresources/logic-environment-variables.md -- Environment variable types, default/current values, usage patternsresources/design-rules.md -- Permanent design decisions, import gotchas, performance optimizationresources/schema-migration.md -- Evolving schemas over time: what can change, migration strategies, solution upgrade patternsresources/logic-custom-api-plugins.md -- Custom APIs: definition, binding types, function vs action, C# plugins, transactional logic, elevated privileges, calling from Code Apps, Power Pages, Web API, Xrm.WebApi, Power Automateresources/ops-testing-monitoring.md -- Monitor tool, Application Insights, PAD testing, Solution Checker, testing decision matrixresources/odata-common.md -- Shared OData conventions, URL patterns, header requirements, error handlingresources/odata-table-creation.md -- OData API patterns for creating and managing Dataverse tablesresources/odata-record-operations.md -- OData CRUD patterns for Dataverse recordsresources/schema-datamodel-manifest.md -- Data model manifest schema for declarative schema definitionsresources/design-gotchas.md -- OData runtime gotchas: system fields, booleans, lookups, dates, PATCH vs PUTresources/design-best-practices.md (opens in a new tab)resources/design-gotchas.md (opens in a new tab)resources/design-rules.md (opens in a new tab)resources/logic-business-rules.md (opens in a new tab)resources/logic-custom-api-plugins.md (opens in a new tab)resources/logic-environment-variables.md (opens in a new tab)resources/mcp-server-setup.md (opens in a new tab)resources/odata-common.md (opens in a new tab)resources/odata-record-operations.md (opens in a new tab)resources/odata-table-creation.md (opens in a new tab)resources/ops-parallelization.md (opens in a new tab)resources/ops-publishing.md (opens in a new tab)resources/ops-solutions-alm.md (opens in a new tab)resources/ops-testing-monitoring.md (opens in a new tab)resources/safety-guardrails.md (opens in a new tab)resources/schema-advanced-column-types.md (opens in a new tab)resources/schema-columns-attributes.md (opens in a new tab)resources/schema-datamodel-manifest.md (opens in a new tab)resources/schema-formula-columns.md (opens in a new tab)resources/schema-migration.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub scottdurow/power-platform-full-stack-skills --plugin power-platform-full-stack16 skills in this plugin
/browser-automationInteractive browser automation and visual validation using Playwright MCP server and GitHub Copilot Agent Mode. Creates a bridge between the agent and a live browser session (including authenticated user context), with optional scripted Playwright test generation for repeatable checks. Triggers on "browser automation", "interactive browser", "playwright mcp", "test the ui", "ui test", "visual test", "visual regression", "check interface", "deployment smoke test", "post-deploy validation", "config validation"./code-reviewDeep code audit and technical review skill. Handles code audits (dead wiring, silent failures, stubs, bloat), architecture decisions, security audits, feature design reviews, refactoring plans, and deployment strategy reviews. Produces actionable reports with file:line references grouped by severity, or structured decision documents with trade-off analysis. Triggers on "code review", "audit the code", "review the code", "find dead code", "find placeholders", "check for stubs", "prune the code", "code cleanup", "implementation review", "completeness check", "find unused code", "architecture decision", "security audit", "design review", "refactoring plan", "deployment review", "team review", "review team", "collaborative review"./dataverse-data-reviewComprehensive Dataverse data model reviewer and critic. Evaluates proposed schemas against 74+ rules covering naming, normalization, data types, business rules, evolvability, and platform-specific best practices. Produces structured assessments with actionable feedback. Triggers on "review my data model", "critique this schema", "is my Dataverse design correct", "data model review", "schema review", "evaluate my tables", "check my data model", "Dataverse best practices review", "normalization check"./dataverse-prerequisitesShared prerequisite steps for any skill that interacts with the Dataverse OData Web API. Covers PAC CLI authentication, Azure CLI token acquisition, WhoAmI validation, environment URL extraction, and token refresh patterns. Triggers on "pac auth", "dataverse auth", "dataverse prerequisites", "connect to dataverse", "environment setup", "pac env who", "dataverse token", "azure cli token dataverse"./ioc-development-patternInversion of Control (IoC) development pattern for building apps with in-memory test data first, then swapping to real data sources. Covers service interfaces, domain models with DTOs, in-memory implementations, service registry, React Query (TanStack Query) integration with cache invalidation, error handling, and incremental backend migration. Triggers on "IoC", "inversion of control", "in-memory data", "mock data", "test data first", "service interface", "swap implementation", "local development pattern", "dev without dataverse", "dev without database", "develop locally", "mock service", "in-memory service", "service abstraction", "data service pattern", "service layer", "react query", "tanstack query", "query key factory", "cache invalidation", "optimistic update", "domain model", "dto pattern"./power-apps-code-appsExpert guidance for building Power Apps Code Apps (standalone React/Vue/TypeScript web applications on Power Platform). Covers the full end-to-end workflow from planning through deployment with preflight checks and completion checklists at every phase. Includes @microsoft/power-apps SDK, authentication, Dataverse integration, Azure SQL integration, IoC service layer, deep linking, and best practices. Triggers on "code app", "power apps code", "custom page", "react power apps", "vue power apps", "@microsoft/power-apps", "getContext", "code component", "standalone app", "power apps frontend", "azure sql", "shared_sql", "stored procedure", "sql connector", "build a code app", "code app end to end", "new code app project", "scaffold code app", "code app from scratch", "full code app workflow", "deep link", "hideNavBar", "open code app from MDA", "code app iframe", "code app navigation".Other plugins' skills for the same job