[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699KEPX7JZCG8P7QJR37VE0":3,"skill-same:01M699KEPX7JZCG8P7QJR37VE0":93},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":74},"01M699KEPX7JZCG8P7QJR37VE0","add-dataverse",null,"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.","microsoft\u002Fpower-platform-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699JVYJFB75D9JM70BN4H0Q",1149,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"dataverse","add dataverse","add","new","true","opus","tables","data","edit","write","read","create","code","Bash","when","apps","generated","lsp","power","app","typescript","2026-11-10 10:12:30",false,"---\nname: add-dataverse\ndescription: 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.\nuser-invocable: true\nallowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, Skill, EnterPlanMode, ExitPlanMode\nmodel: opus\n---\n\n**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** - Cross-cutting concerns.\n\n**References:**\n\n- [dataverse-reference.md](.\u002Freferences\u002Fdataverse-reference.md) - Picklist fields, virtual fields, lookups, file\u002Fimage columns, form patterns (CRITICAL)\n- [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) - Dataverse API auth, token, publisher prefix\n- [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md) - Query, create, extend tables and columns\n- [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md) - Relationship types, dependency tiers\n\n# Add Dataverse\n\nTwo paths: **existing tables** (skip to Step 5) or **new tables** (full workflow).\n\n## Workflow\n\n1. Plan → 2. Setup API Auth → 3. Review Existing Tables → 4. Create Tables → 5. Add Data Source → 6. Review Generated Files → 7. Build\n\n---\n\n### Step 1: Plan\n\nCheck memory bank for project context. Ask the user:\n\n1. Which Dataverse table(s) do they need? (e.g., `account`, `contact`, `cr123_customentity`)\n2. Do the tables **already exist** in their environment, or do they need to **create new** ones?\n\n**If tables already exist:** Skip to Step 5.\n\n**If creating new tables:**\n\n- Ask about the data they need and design an appropriate schema\n- Use standard Dataverse tables when appropriate (`contact` for people, `account` for organizations)\n- Build a dependency graph -- see [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md) for tier classification\n- Enter plan mode with `EnterPlanMode`, present ER model with tables, columns, relationships, and creation order\n- Get approval with `ExitPlanMode`\n\n### Step 2: Setup API Auth (if creating tables)\n\nSee [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) for full details.\n\n```powershell\naz account show   # Verify Azure CLI logged in\n\n# Find your Dataverse environment URL:\n# In make.powerapps.com → Settings → Developer resources → Web API endpoint\n# It looks like: https:\u002F\u002F\u003Corg-name>.crm.dynamics.com\u002Fapi\u002Fdata\u002Fv9.2\u002F\n# Use the base URL: https:\u002F\u002F\u003Corg-name>.crm.dynamics.com\n\n$api = Initialize-DataverseApi -EnvironmentUrl \"https:\u002F\u002F\u003Corg>.crm.dynamics.com\"\n$headers = $api.Headers\n$baseUrl = $api.BaseUrl\n$publisherPrefix = $api.PublisherPrefix\n```\n\nRequires **System Administrator** or **System Customizer** security role.\n\n### Step 3: Review Existing Tables (if creating tables)\n\n**Always query existing tables first before creating:**\n\n```powershell\n$existingTables = Invoke-RestMethod -Uri \"$baseUrl\u002FEntityDefinitions?`$filter=IsCustomEntity eq true&`$select=SchemaName,LogicalName,DisplayName\" -Headers $headers\n```\n\nSee [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md) for `Find-SimilarTables`, `Compare-TableSchemas`, and `Build-TableNameMapping` functions.\n\nPresent findings to user with `AskUserQuestion`:\n\n- Tables that can be **reused** (already exist with matching columns)\n- Tables that need **extension** (exist but missing columns)\n- Tables that must be **created** (no match found)\n\n### Step 4: Create Tables (if creating tables)\n\nGet explicit confirmation before creating. Create in dependency order:\n\n- **Tier 0**: Reference tables (no dependencies)\n- **Tier 1**: Primary entities (reference Tier 0)\n- **Tier 2**: Dependent tables (reference Tier 1)\n\nUse safe functions from [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md):\n\n- `New-DataverseTableIfNotExists`\n- `Add-DataverseColumnIfNotExists`\n- `Add-DataverseLookupIfNotExists` (from [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md))\n\n### Step 5: Add Data Source\n\nFor each table:\n\n```bash\npa app add data-source --connector dataverse --table \u003Ctable-logical-name>\n```\n\nCan add multiple tables by running the command for each one.\n\n### Step 6: Review Generated Files\n\nThe command generates:\n\n- `src\u002Fgenerated\u002Fmodels\u002F{Table}Model.ts` -- TypeScript interfaces, plus `{Table}FileColumnName`, `{Table}ImageColumnName`, `{Table}UploadColumnName` union types if the table has file\u002Fimage columns\n- `src\u002Fgenerated\u002Fservices\u002F{Table}Service.ts` -- CRUD methods (create, get, getAll, update, delete) plus `upload`, `downloadFile`, `downloadImage`, `deleteFileOrImage` if file\u002Fimage columns exist\n\nShow the user a usage example:\n\n```typescript\nimport { AccountsService } from \"..\u002Fgenerated\u002Fservices\u002FAccountsService\";\n\nconst result = await AccountsService.getAll({\n  select: [\"name\", \"accountnumber\"],\n  filter: \"statecode eq 0\",\n  orderBy: [\"name asc\"],\n  top: 50\n});\nconst accounts = result.data || [];\n```\n\n**Key rules:**\n\n- Use generated services (e.g., `AccountsService.getAll()`), not fetch\u002Faxios\n- Check `result.data` for actual data\n- Don't edit generated files unless needed\n- **Read [dataverse-reference.md](.\u002Freferences\u002Fdataverse-reference.md) before writing any Dataverse code** -- picklist fields, virtual fields, lookups, and file\u002Fimage columns all have critical gotchas\n\n### Step 7: Build\n\n```bash\nnpm run build\n```\n\nFix TypeScript errors before proceeding. Do NOT deploy yet.\n\n### Update Memory Bank\n\nRecord which tables were added (or created), generated files, and any schema notes.\n","**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** - Cross-cutting concerns.\n\n**References:**\n\n- [dataverse-reference.md](.\u002Freferences\u002Fdataverse-reference.md) - Picklist fields, virtual fields, lookups, file\u002Fimage columns, form patterns (CRITICAL)\n- [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) - Dataverse API auth, token, publisher prefix\n- [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md) - Query, create, extend tables and columns\n- [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md) - Relationship types, dependency tiers\n\n# Add Dataverse\n\nTwo paths: **existing tables** (skip to Step 5) or **new tables** (full workflow).\n\n## Workflow\n\n1. Plan → 2. Setup API Auth → 3. Review Existing Tables → 4. Create Tables → 5. Add Data Source → 6. Review Generated Files → 7. Build\n\n---\n\n### Step 1: Plan\n\nCheck memory bank for project context. Ask the user:\n\n1. Which Dataverse table(s) do they need? (e.g., `account`, `contact`, `cr123_customentity`)\n2. Do the tables **already exist** in their environment, or do they need to **create new** ones?\n\n**If tables already exist:** Skip to Step 5.\n\n**If creating new tables:**\n\n- Ask about the data they need and design an appropriate schema\n- Use standard Dataverse tables when appropriate (`contact` for people, `account` for organizations)\n- Build a dependency graph -- see [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md) for tier classification\n- Enter plan mode with `EnterPlanMode`, present ER model with tables, columns, relationships, and creation order\n- Get approval with `ExitPlanMode`\n\n### Step 2: Setup API Auth (if creating tables)\n\nSee [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) for full details.\n\n```powershell\naz account show   # Verify Azure CLI logged in\n\n# Find your Dataverse environment URL:\n# In make.powerapps.com → Settings → Developer resources → Web API endpoint\n# It looks like: https:\u002F\u002F\u003Corg-name>.crm.dynamics.com\u002Fapi\u002Fdata\u002Fv9.2\u002F\n# Use the base URL: https:\u002F\u002F\u003Corg-name>.crm.dynamics.com\n\n$api = Initialize-DataverseApi -EnvironmentUrl \"https:\u002F\u002F\u003Corg>.crm.dynamics.com\"\n$headers = $api.Headers\n$baseUrl = $api.BaseUrl\n$publisherPrefix = $api.PublisherPrefix\n```\n\nRequires **System Administrator** or **System Customizer** security role.\n\n### Step 3: Review Existing Tables (if creating tables)\n\n**Always query existing tables first before creating:**\n\n```powershell\n$existingTables = Invoke-RestMethod -Uri \"$baseUrl\u002FEntityDefinitions?`$filter=IsCustomEntity eq true&`$select=SchemaName,LogicalName,DisplayName\" -Headers $headers\n```\n\nSee [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md) for `Find-SimilarTables`, `Compare-TableSchemas`, and `Build-TableNameMapping` functions.\n\nPresent findings to user with `AskUserQuestion`:\n\n- Tables that can be **reused** (already exist with matching columns)\n- Tables that need **extension** (exist but missing columns)\n- Tables that must be **created** (no match found)\n\n### Step 4: Create Tables (if creating tables)\n\nGet explicit confirmation before creating. Create in dependency order:\n\n- **Tier 0**: Reference tables (no dependencies)\n- **Tier 1**: Primary entities (reference Tier 0)\n- **Tier 2**: Dependent tables (reference Tier 1)\n\nUse safe functions from [table-management-reference.md](.\u002Freferences\u002Ftable-management-reference.md):\n\n- `New-DataverseTableIfNotExists`\n- `Add-DataverseColumnIfNotExists`\n- `Add-DataverseLookupIfNotExists` (from [data-architecture-reference.md](.\u002Freferences\u002Fdata-architecture-reference.md))\n\n### Step 5: Add Data Source\n\nFor each table:\n\n```bash\npa app add data-source --connector dataverse --table \u003Ctable-logical-name>\n```\n\nCan add multiple tables by running the command for each one.\n\n### Step 6: Review Generated Files\n\nThe command generates:\n\n- `src\u002Fgenerated\u002Fmodels\u002F{Table}Model.ts` -- TypeScript interfaces, plus `{Table}FileColumnName`, `{Table}ImageColumnName`, `{Table}UploadColumnName` union types if the table has file\u002Fimage columns\n- `src\u002Fgenerated\u002Fservices\u002F{Table}Service.ts` -- CRUD methods (create, get, getAll, update, delete) plus `upload`, `downloadFile`, `downloadImage`, `deleteFileOrImage` if file\u002Fimage columns exist\n\nShow the user a usage example:\n\n```typescript\nimport { AccountsService } from \"..\u002Fgenerated\u002Fservices\u002FAccountsService\";\n\nconst result = await AccountsService.getAll({\n  select: [\"name\", \"accountnumber\"],\n  filter: \"statecode eq 0\",\n  orderBy: [\"name asc\"],\n  top: 50\n});\nconst accounts = result.data || [];\n```\n\n**Key rules:**\n\n- Use generated services (e.g., `AccountsService.getAll()`), not fetch\u002Faxios\n- Check `result.data` for actual data\n- Don't edit generated files unless needed\n- **Read [dataverse-reference.md](.\u002Freferences\u002Fdataverse-reference.md) before writing any Dataverse code** -- picklist fields, virtual fields, lookups, and file\u002Fimage columns all have critical gotchas\n\n### Step 7: Build\n\n```bash\nnpm run build\n```\n\nFix TypeScript errors before proceeding. Do NOT deploy yet.\n\n### Update Memory Bank\n\nRecord which tables were added (or created), generated files, and any schema notes.\n",{"name":5,"model":29,"description":7,"allowed-tools":50,"user-invocable":51},"Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, Skill, EnterPlanMode, ExitPlanMode",true,"main","9d26fde082b47f04e9bb97cb30a46dd1eaaa776e","plugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse",232,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills","https:\u002F\u002Fmicrosoft.github.io\u002Fpower-platform-skills\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 21:46:39",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":51},[64,67,70],{"tool":65,"command":66},"npx","npx skills add microsoft\u002Fpower-platform-skills --skill add-dataverse",{"tool":68,"command":69},"bunx","bunx skills add microsoft\u002Fpower-platform-skills --skill add-dataverse",{"tool":71,"command":72},"pnpm","pnpm dlx skills add microsoft\u002Fpower-platform-skills --skill add-dataverse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002FSKILL.md",[75,81,85,89],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-authentication-reference.md","REFERENCE","参考文档",5303,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002Freferences\u002Fapi-authentication-reference.md",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fdata-architecture-reference.md",3757,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002Freferences\u002Fdata-architecture-reference.md",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdataverse-reference.md",13093,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002Freferences\u002Fdataverse-reference.md",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ftable-management-reference.md",15859,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-apps\u002Fskills\u002Fadd-dataverse\u002Freferences\u002Ftable-management-reference.md",[94,102,121,142,160,174],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"01M78JN2BFRRV1J54Q6WKZQ08D","compare-site-configurations","Compare Power Pages site configurations between two environments, such as dev, test and production, or between a local download and the live site, and explain which differences change site behavior. Use when a site works in one environment but not another (for example, works in dev but fails in test), to check configuration drift before promoting or deploying, or to see what changed between two sites. Produces a shareable HTML report and a JSON file that VS Code can import.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fcompare-site-configurations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":45},"01M699WVHX0XN59EPBTTPEKYPG","setup","Use when Process Intelligence needs building, explicit cloud\u002Faccount\u002Fenvironment configuration, sign-in, connection diagnostics, or recovery from an authentication error.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fsetup\u002FSKILL.md",[],[104,109,110,111,112,113,38,114,115,116,37,117,118,119,34,120],"configuration","diagnostics","error","environment","cloud","connection","authentication","use","recovery","process","sign","intelligence",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":130,"publishedAt":45},"01M699WSR9EX55YY1WD9J22FEG","report-issue","Use when the user wants a Process Intelligence bug-report draft or support summary for a failed operation.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Freport-issue\u002FSKILL.md",[127],{"categoryNo":128,"categoryName":129,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000034","行政与办公人员",[131,132,133,134,116,38,135,136,118,137,120,138,139,140,141],"issue","report","report issue","bug-report","operation","draft","bug","summary","user","for","support",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":45},"01M699WR26YQ9Q21KE6MJF5B2G","investigate-process","Use when a broad Process Mining business question, observed pattern or competing explanation needs investigation across analytical perspectives.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Finvestigate-process\u002FSKILL.md",[],[149,118,150,151,116,152,153,38,154,155,156,34,157,158,159],"investigate","investigate process","question","process mining","business","across","perspectives","mining","pattern","investigation","analytical",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":45},"01M699WP9SDG5ZR12P8VYNXKTN","derive-metric","Use when a requested measure is missing, a saved custom metric needs reuse, or an ephemeral formula or derived scalar is needed.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fderive-metric\u002FSKILL.md",[],[167,168,169,170,171,172,116,38,173,34],"metric","derive metric","missing","formula","custom","reuse","saved",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":45},"01M699WMG5R8P6SMTDAS1TKF9E","compare-cohorts","Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fcompare-cohorts\u002FSKILL.md",[],[181,182,116,38,183,118,34],"compare","compare cohorts","results"]