dataverse-web-api
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
-
Always use the
MSCRM.SolutionUniqueNameheader 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. Readresources/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. Readresources/columns-attributes.md. -
Every table needs a Primary Name attribute. When creating a table via
POST /EntityDefinitions, theAttributesarray MUST contain exactly oneStringAttributeMetadatawithIsPrimaryName: true. Readresources/tables-entities.md.