/dynamics-365-project-ops:dynamics-365-project-opsfrom dynamics-365-project-ops
Provides deep expertise in Dynamics 365 Project Operations via Dataverse Web API — managing projects, WBS, tasks, milestones, time/expense entries, resource assignments, contracts, invoice proposals, and billing actuals.
Ships in dynamics-365-project-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides comprehensive knowledge for operating the Dynamics 365 Project Operations business application layer on top of Dataverse. It covers the full project lifecycle from creation to closure, work breakdown structure (WBS) management, time and expense tracking, resource assignments, project contracts, invoice proposals, and billing actuals reconciliation.
docs/integration-context.md| Workflow | tenantId | subscriptionId | environmentCloud | principalType | scopesOrRoles |
|---|---|---|---|---|---|
| Project management (create/update WBS) | required | — | AzureCloud* | service-principal | Project Manager security role |
| Time and expense | required | — | AzureCloud* | service-principal | Project Team Member + Time Entry user |
| Resource scheduling | required | — | AzureCloud* | service-principal | Resource Manager |
| Billing and invoicing | required | — | AzureCloud* | service-principal | Project Billing Admin or Billing Manager |
* Use sovereign cloud values from the canonical contract when applicable.
Required auth parameters for every Project Operations workflow:
tenantId — Entra ID tenant GUIDorgUrl — Dynamics 365 organization URL: https://{orgName}.crm.dynamics.comsystemuser record with Project Operations security rolesmsdyn_projectparameters)Fail fast when orgUrl is missing or Project Operations is not installed. Redact org URL and record GUIDs in error output.
All Project Operations data operations use the Dataverse Web API:
{orgUrl}/api/data/v9.2/{entitySetName}
API version 9.2 is stable and supports all Project Operations entities, actions, and functions.
import { ClientSecretCredential } from "@azure/identity";
const credential = new ClientSecretCredential(tenantId, clientId, clientSecret);
const token = await credential.getToken("https://org.crm.dynamics.com/.default");
// All requests include:
// Authorization: Bearer {token}
// OData-MaxVersion: 4.0
// OData-Version: 4.0
// Accept: application/json
// Content-Type: application/json
| Entity | API entity set | Primary key |
|---|---|---|
| Project | msdyn_projects | msdyn_projectid |
| Project Task | msdyn_projecttasks | msdyn_projecttaskid |
| Project Team Member | msdyn_projectteams | msdyn_projectteamid |
| Resource Assignment | msdyn_resourceassignments | msdyn_resourceassignmentid |
| Time Entry | msdyn_timeentries | msdyn_timeentryid |
| Expense | msdyn_expenses | msdyn_expenseid |
| Expense Category | msdyn_expensecategories | msdyn_expensecategoryid |
| Project Contract | salesorders (filtered) | salesorderid |
| Project Contract Line | salesorderdetails (filtered) | salesorderdetailid |
| Invoice | invoices | invoiceid |
| Invoice Line | invoicedetails | invoicedetailid |
| Project Actual | msdyn_actuals | msdyn_actualid |
| Project Parameter | msdyn_projectparameters | msdyn_projectparameterid |
| Bookable Resource | bookableresources | bookableresourceid |
| Project Role | bookableresourcecategories | bookableresourcecategoryid |
| Organizational Unit | msdyn_organizationalunits | msdyn_organizationalunitid |
| Transaction Category | msdyn_transactioncategories | msdyn_transactioncategoryid |
msdyn_projectstage | Display | Description |
|---|---|---|
| 192350000 | Quote | Project in quoting phase |
| 192350001 | Plan | Active planning and execution |
| 192350002 | Manage | Execution in progress |
| 192350003 | Close | Project wrapping up |
POST {orgUrl}/api/data/v9.2/msdyn_projects
{
"msdyn_subject": "Contoso ERP Migration — Phase 1",
"msdyn_description": "Full migration of on-premise ERP to Azure cloud, Phase 1: infrastructure and data migration.",
"msdyn_projectstage": 192350001,
"msdyn_scheduledstart": "2026-04-01",
"msdyn_scheduledend": "2026-09-30",
"[email protected]": "/accounts/{customerId}",
"[email protected]": "/msdyn_organizationalunits/{orgUnitId}",
"[email protected]": "/transactioncurrencies/{currencyId}",
"msdyn_calendarid": "{calendarId}"
}
PATCH {orgUrl}/api/data/v9.2/msdyn_projects({projectId})
{
"msdyn_projectstage": 192350003,
"msdyn_actualduration": 130,
"msdyn_description": "Project closed. All milestones delivered. Final invoice issued."
}
POST {orgUrl}/api/data/v9.2/msdyn_projecttasks
{
"msdyn_subject": "Infrastructure Assessment",
"[email protected]": "/msdyn_projects/{projectId}",
"[email protected]": "/msdyn_projecttasks/{parentTaskId}",
"msdyn_scheduledstart": "2026-04-01T00:00:00Z",
"msdyn_scheduledend": "2026-04-14T00:00:00Z",
"msdyn_duration": 80,
"msdyn_effort": 80,
"msdyn_remainingeffort": 80,
"msdyn_estimatedcost": 12000,
"msdyn_ismilestone": false,
"msdyn_displaysequence": 10
}
POST {orgUrl}/api/data/v9.2/msdyn_projecttasks
{
"msdyn_subject": "Phase 1 Go-Live",
"[email protected]": "/msdyn_projects/{projectId}",
"msdyn_scheduledstart": "2026-06-30T00:00:00Z",
"msdyn_scheduledend": "2026-06-30T00:00:00Z",
"msdyn_duration": 0,
"msdyn_ismilestone": true,
"msdyn_displaysequence": 50
}
POST {orgUrl}/api/data/v9.2/msdyn_projectteams
{
"[email protected]": "/msdyn_projects/{projectId}",
"[email protected]": "/bookableresources/{resourceId}",
"[email protected]": "/bookableresourcecategories/{roleId}",
"msdyn_allocationmethod": 4,
"msdyn_from": "2026-04-01T00:00:00Z",
"msdyn_to": "2026-09-30T00:00:00Z"
}
msdyn_entrystatus | Display |
|---|---|
| 192350000 | Draft |
| 192350001 | Returned |
| 192350002 | Approved |
| 192350003 | Submitted |
| 192350004 | Recalled |
POST {orgUrl}/api/data/v9.2/msdyn_timeentries
{
"msdyn_date": "2026-04-07",
"msdyn_duration": 480,
"msdyn_description": "Infrastructure assessment — network topology mapping",
"[email protected]": "/msdyn_projects/{projectId}",
"[email protected]": "/msdyn_projecttasks/{taskId}",
"[email protected]": "/bookableresourcecategories/{roleId}",
"[email protected]": "/bookableresources/{resourceId}",
"msdyn_type": 192350000,
"msdyn_entrystatus": 192350000
}
Submit for approval:
POST {orgUrl}/api/data/v9.2/msdyn_timeentries({timeEntryId})/Microsoft.Dynamics.CRM.msdyn_SubmitTimeEntry
POST {orgUrl}/api/data/v9.2/msdyn_timeentries({timeEntryId})/Microsoft.Dynamics.CRM.msdyn_ApproveTimeEntry
POST {orgUrl}/api/data/v9.2/msdyn_expenses
{
"msdyn_name": "Client site travel — April 7",
"[email protected]": "/msdyn_projects/{projectId}",
"[email protected]": "/msdyn_projecttasks/{taskId}",
"[email protected]": "/msdyn_expensecategories/{categoryId}",
"msdyn_transactiondate": "2026-04-07",
"msdyn_amount": 285.50,
"[email protected]": "/transactioncurrencies/{currencyId}",
"msdyn_unitamount": 285.50,
"msdyn_expensestatus": 192350000,
"msdyn_salestaxamount": 0
}
POST {orgUrl}/api/data/v9.2/msdyn_resourceassignments
{
"[email protected]": "/msdyn_projecttasks/{taskId}",
"[email protected]": "/msdyn_projectteams/{teamMemberId}",
"[email protected]": "/msdyn_projects/{projectId}",
"[email protected]": "/bookableresources/{resourceId}",
"msdyn_fromdate": "2026-04-01T00:00:00Z",
"msdyn_todate": "2026-04-14T00:00:00Z",
"msdyn_hours": 80
}
GET {orgUrl}/api/data/v9.2/msdyn_resourceassignments?$select=msdyn_resourceassignmentid,msdyn_hours,msdyn_fromdate,msdyn_todate&$expand=msdyn_bookableresourceid($select=name),msdyn_projectid($select=msdyn_subject),msdyn_taskid($select=msdyn_subject)&$filter=msdyn_fromdate ge 2026-04-01T00:00:00Z and msdyn_todate le 2026-06-30T00:00:00Z
Project contracts in Project Operations use the salesorders entity with orderstatus = 3 (Active).
Create project contract:
POST {orgUrl}/api/data/v9.2/salesorders
{
"name": "Contoso ERP Migration — Contract",
"[email protected]": "/accounts/{customerId}",
"[email protected]": "/pricelevels/{priceLevelId}",
"[email protected]": "/msdyn_organizationalunits/{orgUnitId}",
"[email protected]": "/msdyn_projects/{projectId}",
"orderstatus": 3,
"totalamount": 280000
}
POST {orgUrl}/api/data/v9.2/msdyn_projects({projectId})/Microsoft.Dynamics.CRM.msdyn_CreateInvoice
{
"InvoiceDate": "2026-05-31T00:00:00Z"
}
POST {orgUrl}/api/data/v9.2/invoices({invoiceId})/Microsoft.Dynamics.CRM.msdyn_ConfirmInvoice
Actuals represent the financial transactions generated from approved time, expenses, and billing milestones:
GET {orgUrl}/api/data/v9.2/msdyn_actuals?$select=msdyn_actualid,msdyn_transactiontype,msdyn_amount,msdyn_quantity,msdyn_transactiondate,msdyn_documenttype&$expand=msdyn_project($select=msdyn_subject),msdyn_task($select=msdyn_subject),msdyn_resourcecategory($select=name)&$filter=_msdyn_project_value eq {projectId} and statecode eq 0
Transaction types:
msdyn_transactiontype | Display |
|---|---|
| 192350000 | Cost |
| 192350001 | Inter-Org Sales |
| 192350002 | Resale |
| 192350004 | Billed Sales |
| 192350005 | Unbilled Sales |
| HTTP status | OData error code | Cause |
|---|---|---|
| 401 | 0x80040220 | Service principal lacks systemuser record or Project Operations role |
| 403 | 0x80040214 | Missing Project Manager, Team Member, or Billing Admin role |
| 404 | 0x80040217 | Record not found (wrong GUID or Project Operations not installed) |
| 400 | 0x8004B400 | Required field missing (e.g., msdyn_project on time entry) |
| 400 | 0x80060891 | Invalid status transition (e.g., approving a Draft entry directly) |
| 400 | 0x80048408 | Duplicate detection violation |
| 429 | 0x80072328 | API throttling — add Retry-After backoff |
Rate limits: 6,000 API requests per 5-minute window per user. Use $batch for bulk operations.
Every operation produces a structured markdown report:
| Reference | Path | Topics |
|---|---|---|
| Project Entities | references/project-entities.md | Projects, tasks, milestones, team members, WBS structure, project parameters |
| Time and Expense Reference | references/time-expense-reference.md | Time entries, expenses, approval workflows, expense categories, per-diem rules |
| Billing Reference | references/billing-reference.md | Project contracts, contract lines, billing milestones, invoice proposals, actuals, revenue recognition |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dynamics-365, project-operations, dataverse, project-management, erp
npx claudepluginhub thelobbi/claude-m --plugin dynamics-365-project-opsOther plugins' skills for the same job