Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

dataverse-web-apidataverse WEB API 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

699

周安装

28

GitHub Stars

43

下载量

226
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dataverse-web-api(dataverse WEB API 文档)
来源仓库:https://github.com/danielkerridge/claude-code-power-platform-skills
仓库路径:skills/dataverse-web-api
安装命令:
npx skills add https://github.com/danielkerridge/claude-code-power-platform-skills --skill dataverse-web-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/danielkerridge/claude-code-power-platform-skills --skill dataverse-web-api

简介

用于程序化管理和架构 Microsoft Dataverse 环境结构。

  • 提供 OData v4.0 RESTful 端点的元数据和模式管理能力。
  • 支持以代码方式定义表、字段、关系和应用逻辑。
  • 严格遵循解决方案 ALM 规范,避免污染 Default Solution。
  • 所有操作均需携带正确的解决方案唯一名称头部信息。

SKILL.md

Dataverse Web API Metadata Skill

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.

CRITICAL RULES -- Read These First

  1. 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/solutions-alm.md.
  2. 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/columns-attributes.md.
  3. 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/tables-entities.md.
  4. Publishing is required. Creating forms, views, or sitemap changes leaves them in draft state. Call the PublishXml action to make changes visible. Read resources/publishing-ops.md.
  5. 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/views-queries.md.
  6. Base URL pattern: https://{org}.api.crm.dynamics.com/api/data/v9.2/
  7. Required headers for all requests:

- Authorization: Bearer {token} (OAuth 2.0) - Content-Type: application/json; charset=utf-8 - OData-Version: 4.0 - OData-MaxVersion: 4.0

  1. Windows: Always use PowerShell.ps1 scripts for API calls. Bash mangles OData $ params ($filter, $select). Write .ps1 files and run with powershell -ExecutionPolicy Bypass -File.
  2. 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/best-practices.md.
  3. 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
  4. Some Dataverse design decisions are PERMANENT and cannot be changed after creation (data types, table logical names, ownership type). Read resources/dataverse-design-rules.md before designing tables.

Quick Reference: Key Endpoints

OperationMethodEndpoint
Create tablePOST/EntityDefinitions
Create columnPOST/EntityDefinitions(LogicalName='{table}')/Attributes
Create 1:N relationshipPOST/RelationshipDefinitions
Create N:N relationshipPOST/RelationshipDefinitions
Create global option setPOST/GlobalOptionSetDefinitions
Create formPOST/systemforms
Create viewPOST/savedqueries
Create solutionPOST/solutions
Create publisherPOST/publishers
Create app modulePOST/appmodules
Create sitemapPOST/sitemaps
Add component to solutionActionAddSolutionComponent
Add component to appActionAddAppComponents
Publish changesActionPublishXml
Validate appFunctionValidateApp
Create business rulePOST/workflows (Category=2)
Create environment variablePOST/environmentvariabledefinitions
Create custom APIPOST/customapis

Workflow: Building a Dataverse Schema from Scratch

Step 1 -- Create Publisher and Solution

Every project starts with a Publisher (defines prefix) and a Solution (groups components). Read resources/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",
  "publisherid@odata.bind": "/publishers({publisher-guid})"
}

Step 2 -- Create Tables

Include the MSCRM.SolutionUniqueName header. The Primary Name attribute is inline. Read resources/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" }
  }]
}

Step 3 -- Add Columns

Read resources/columns-attributes.md for all 12+ column types with exact payloads.

Step 4 -- Define Relationships

Read resources/relationships.md for 1:N and N:N patterns with cascade configuration.

Step 5 -- Create Views

Read resources/views-queries.md for FetchXML + LayoutXML construction.

Step 6 -- Create Forms

Read resources/forms-ui.md for FormXml schema and programmatic form generation.

Step 7 -- Build the App Module

Read resources/app-modules.md for app composition, sitemap, and validation.

Step 8 -- Publish

POST /PublishXml
{
  "ParameterXml": "<importexportxml><entities><entity>cnt_project</entity></entities></importexportxml>"
}

Read resources/publishing-ops.md for selective vs full publishing and ValidateApp.

When Debugging API Calls

  1. Check @odata.type is correct for the payload type
  2. Verify MSCRM.SolutionUniqueName header is present
  3. Ensure SchemaName includes the publisher prefix (e.g., cnt_)
  4. Confirm IsPrimaryName attribute exists when creating tables
  5. Check that fetchxml and layoutxml columns match for views
  6. Remember to call PublishXml after form/view/sitemap changes
  7. Use $metadata endpoint to inspect the current schema: GET /api/data/v9.2/$metadata

Resource Files

  • resources/solutions-alm.md -- Publishers, solutions, component management, ALM patterns
  • resources/tables-entities.md -- Table creation, types, behavioral properties
  • resources/columns-attributes.md -- All column types with exact payloads
  • resources/relationships.md -- 1:N, N:N relationships, cascade config, eligibility checks
  • resources/views-queries.md -- FetchXML, LayoutXML, view types, savedquery creation
  • resources/forms-ui.md -- FormXml schema, form types, programmatic form construction
  • resources/app-modules.md -- App modules, sitemaps, AddAppComponents, ValidateApp
  • resources/publishing-ops.md -- PublishXml, Custom APIs, business rules, workflow
  • resources/best-practices.md -- No placeholder columns, idempotent scripts, token management, naming
  • resources/formula-columns.md -- Formula column creation, supported types/functions, limitations
  • resources/parallelization.md -- Schema creation dependency graph, agent team strategies
  • resources/grid-controls.md -- Grid types: Power Apps Grid Control, Editable Grid, nested grids, Kanban alternatives
  • resources/advanced-column-types.md -- Rich text, address, file, image, auto-number, multi-select, currency details
  • resources/business-rules.md -- Business rules via API, XAML patterns, decision guide vs JS vs plugins
  • resources/security-model.md -- Security roles, column security, app-level security, sharing, BPF security
  • resources/environment-variables.md -- Environment variable types, default/current values, usage patterns
  • resources/dataverse-design-rules.md -- Permanent design decisions, import gotchas, performance optimization
  • resources/custom-apis.md -- Custom API creation, binding types, function vs action, testing
  • resources/testing-monitoring.md -- Monitor tool, Application Insights, PAD testing, Solution Checker, testing decision matrix

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.65%
按下载量换算81

Claude

30.31%
按下载量换算69

Cursor

20.44%
按下载量换算46

Gemini CLI

10.6%
按下载量换算24

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills