add-data-source
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue. USE WHEN the user asks to…
Adds Dataverse tables to a Power Apps code app with generated TypeScript models and services. Can also create new Dataverse tables. Use when connecting to Dataverse, adding tables, creating schema, or querying Dataverse data.
$ npx -y skills add microsoft/power-platform-skills --skill add-dataverse --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/add-dataverseContext preview
The summary Claude sees to decide when to auto-load this skill.
Adds Dataverse tables to a Power Apps code app with generated TypeScript models and services. Can also create new Dataverse tables. Use when connecting to Dataverse, adding tables, creating schema, or querying Dataverse data.
name: add-dataverse description: Adds Dataverse tables to a Power Apps code app with generated TypeScript models and services. Can also create new Dataverse tables. Use when connecting to Dataverse, adding tables, creating schema, or querying Dataverse data. user-invocable: true allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, Skill, EnterPlanMode, ExitPlanMode model: opus
**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
**References:**
Two paths: **existing tables** (skip to Step 5) or **new tables** (full workflow).
1. Plan → 2. Setup API Auth → 3. Review Existing Tables → 4. Create Tables → 5. Add Data Source → 6. Review Generated Files → 7. Build
---
Check memory bank for project context. Ask the user:
1. Which Dataverse table(s) do they need? (e.g., `account`, `contact`, `cr123_customentity`) 2. Do the tables **already exist** in their environment, or do they need to **create new** ones?
**If tables already exist:** Skip to Step 5.
**If creating new tables:**
See [api-authentication-reference.md](./references/api-authentication-reference.md) for full details.
az account show # Verify Azure CLI logged in # Find your Dataverse environment URL: # In make.powerapps.com → Settings → Developer resources → Web API endpoint # It looks like: https://<org-name>.crm.dynamics.com/api/data/v9.2/ # Use the base URL: https://<org-name>.crm.dynamics.com $api = Initialize-DataverseApi -EnvironmentUrl "https://<org>.crm.dynamics.com" $headers = $api.Headers $baseUrl = $api.BaseUrl $publisherPrefix = $api.PublisherPrefix
Requires **System Administrator** or **System Customizer** security role.
**Always query existing tables first before creating:**
$existingTables = Invoke-RestMethod -Uri "$baseUrl/EntityDefinitions?`$filter=IsCustomEntity eq true&`$select=SchemaName,LogicalName,DisplayName" -Headers $headers
See [table-management-reference.md](./references/table-management-reference.md) for `Find-SimilarTables`, `Compare-TableSchemas`, and `Build-TableNameMapping` functions.
Present findings to user with `AskUserQuestion`:
Get explicit confirmation before creating. Create in dependency order:
Use safe functions from [table-management-reference.md](./references/table-management-reference.md):
For each table:
pa app add data-source --connector dataverse --table <table-logical-name>
Can add multiple tables by running the command for each one.
The command generates:
Show the user a usage example:
import { AccountsService } from "../generated/services/AccountsService";
const result = await AccountsService.getAll({
select: ["name", "accountnumber"],
filter: "statecode eq 0",
orderBy: ["name asc"],
top: 50
});
const accounts = result.data || [];**Key rules:**
npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Record which tables were added (or created), generated files, and any schema notes.
Official agent skills/plugins for Power Platform development by Microsoft.
Repo: microsoft/power-platform-skills
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue. USE WHEN the user asks to…
Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation, direct targeted edits, complex…
Configure the Canvas Authoring MCP server for the current coauthoring session. USE WHEN "configure MCP", "set up MCP server", "MCP not working", "connect…
Use this skill when the user wants to "report a bug", "file an issue", "report an issue", "submit a bug report", or report any problem with the canvas-apps…
Adds Azure DevOps connector to a Power Apps code app. Use when querying work items, creating bugs, managing pipelines, or making ADO API calls.
Adds any Power Platform connector to a Power Apps code app. Generic fallback for connectors not covered by a specific skill.