Perform OData entity operations in Dynamics 365 Finance and Operations

domain: Dynamics 365 Finance and Operations OData · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register an Azure AD application in the tenant, grant it the Dynamics ERP API permission ('user_impersonation' or application-level access), and create a client secret; record the client ID and tenant ID.
  2. Acquire an access token via the OAuth 2.0 client credentials flow: POST to https://login.microsoftonline.com/YOUR_TENANT/oauth2/v2.0/token with client_id, client_secret, grant_type=client_credentials, and scope=https://YOUR_D365_ENV.operations.dynamics.com/.default.
  3. Send requests to the OData endpoint at https://YOUR_D365_ENV.operations.dynamics.com/data/EntityName, using standard OData query options ($filter, $select, $expand, $top, $skip) for GET and JSON bodies for POST/PATCH/DELETE.
  4. For write operations include the 'If-Match: *' header for PATCH and DELETE to bypass ETag validation, or supply the actual ETag from a prior GET if optimistic concurrency is required.
  5. Handle HTTP 429 (throttling) responses with exponential backoff; D365 F&O enforces per-user and per-application request rate limits.

Known gotchas

Related routes

Query and update BOM line data entities in Dynamics 365 Finance and Operations using the OData API (BOMLineEntity / BOMHeaderV2Entity)
learn.microsoft.com · 6 steps · unrated
Send multiple Dynamics 365 Web API operations in a single OData batch request
learn.microsoft.com · 5 steps · unrated
Query Dynamics 365 records using the Web API with OData filter expressions
learn.microsoft.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans