Логотип Dataverse Solution Web Api

Dataverse Solution Web Api

Спільнота
scottdurow
dataverse-solution-web-api

Expert guidance for the Microsoft Dataverse Web API metadata and schema management. Programmatically create tables, columns, relationships, forms, views, app modules, and sitemaps using OData v4.0 RESTful endpoints. Treats application structure as code. Also covers the Dataverse MCP server for natural language queries and CRUD via GitHub Copilot. Triggers on "dataverse api", "web api", "create table", "EntityDefinitions", "AttributeMetadata", "RelationshipDefinitions", "POST /EntityDefinitions", "PublishXml", "dataverse schema", "programmatic schema", "api metadata", "dataverse mcp", "mcp server", "dataverse mcp server", "@microsoft/dataverse", "mcp setup", "mcp dataverse".

Огляд

Видавецьscottdurow
Репозиторійpower-platform-full-stack-skills
Назва навичкиdataverse-solution-web-api
Зірки
39
Форки
10
Файли в пакеті
28
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 28

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем scottdurow. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Dataverse Solution Web Api у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/scottdurow/power-platform-full-stack-skills/tree/main/skills/dataverse-solution-web-api
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scottdurow/power-platform-full-stack-skills.git /tmp/power-platform-full-stack-skills
mkdir -p .claude/skills
cp -r /tmp/power-platform-full-stack-skills/skills/dataverse-solution-web-api .claude/skills/dataverse-solution-web-api
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Dataverse Solution Web Api в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Dataverse Solution Web Api, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Dataverse Solution Web Api не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу 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/ops-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/schema-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/schema-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/ops-publishing.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/ui-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
  8. 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.

  9. 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.

  10. 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

  11. 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.

  12. 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.

  13. 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.

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/ops-solutions-alm.md for full payloads and patterns.

http
POST /publishers
{
  "friendlyname": "Contoso Corp",
  "uniquename": "contoso",
  "customizationprefix": "cnt",
  "customizationoptionvalueprefix": 10000
}
http
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/schema-tables-entities.md for all properties and table types.

http
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/schema-columns-attributes.md for all 12+ column types with exact payloads.

Step 4 -- Define Relationships

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

Step 5 -- Create Views

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

Step 6 -- Create Forms

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

Step 7 -- Build the App Module

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

Step 8 -- Publish

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

Read resources/ops-publishing.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/ops-solutions-alm.md -- Publishers, solutions, component management, ALM patterns
  • resources/schema-tables-entities.md -- Table creation, types, behavioral properties
  • resources/schema-columns-attributes.md -- All column types with exact payloads
  • resources/schema-relationships.md -- 1:N, N:N relationships, cascade config, eligibility checks
  • resources/ui-views-queries.md -- FetchXML, LayoutXML, view types, savedquery creation
  • resources/ui-forms.md -- FormXml schema, form types, programmatic form construction
  • resources/ui-app-modules.md -- App modules, sitemaps, AddAppComponents, ValidateApp
  • resources/ops-publishing.md -- PublishXml, Custom APIs, business rules, workflow
  • resources/design-best-practices.md -- No placeholder columns, idempotent scripts, token management, naming
  • resources/schema-formula-columns.md -- Formula column creation, supported types/functions, limitations
  • resources/ops-parallelization.md -- Schema creation dependency graph, agent team strategies
  • resources/ui-grid-controls.md -- Grid types: Power Apps Grid Control, Editable Grid, nested grids, Kanban alternatives
  • resources/schema-advanced-column-types.md -- Rich text, address, file, image, auto-number, multi-select, currency details
  • resources/logic-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/logic-environment-variables.md -- Environment variable types, default/current values, usage patterns
  • resources/design-rules.md -- Permanent design decisions, import gotchas, performance optimization
  • resources/schema-migration.md -- Evolving schemas over time: what can change, migration strategies, solution upgrade patterns
  • resources/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 Automate
  • resources/ops-testing-monitoring.md -- Monitor tool, Application Insights, PAD testing, Solution Checker, testing decision matrix
  • resources/odata-common.md -- Shared OData conventions, URL patterns, header requirements, error handling
  • resources/odata-table-creation.md -- OData API patterns for creating and managing Dataverse tables
  • resources/odata-record-operations.md -- OData CRUD patterns for Dataverse records
  • resources/schema-datamodel-manifest.md -- Data model manifest schema for declarative schema definitions
  • resources/design-gotchas.md -- OData runtime gotchas: system fields, booleans, lookups, dates, PATCH vs PUT

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Dataverse Solution Web Api?

Expert guidance for the Microsoft Dataverse Web API metadata and schema management. Programmatically create tables, columns, relationships, forms, views, app modules, and sitemaps using OData v4.0 RESTful endpoints. Treats application structure as code. Also covers the Dataverse MCP server for natural language queries and CRUD via GitHub Copilot. Triggers on "dataverse api", "web api", "create table", "EntityDefinitions", "AttributeMetadata", "RelationshipDefinitions", "POST /EntityDefinitions", "PublishXml", "dataverse schema", "programmatic schema", "api metadata", "dataverse mcp", "mcp s...

Навіщо використовувати Dataverse Solution Web Api у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Dataverse Solution Web Api — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Dataverse Solution Web Api у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/scottdurow/power-platform-full-stack-skills/tree/main/skills/dataverse-solution-web-api. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Dataverse Solution Web Api?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Dataverse Solution Web Api?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Dataverse Solution Web Api — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Dataverse Solution Web Api?

Навичку опубліковано на GitHub: scottdurow. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇