Poll a Microsoft Dynamics 365 Dataverse long-running (async) OData action to completion

domain: learn.microsoft.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Invoke the async OData action with a Prefer: respond-async header to instruct Dataverse to process it asynchronously
  2. Capture the Location header from the 202 Accepted response, which contains the URL of the async operation status resource
  3. Poll the status URL at a reasonable interval, reading the statuscode integer field from the returned JSON
  4. Continue polling until statuscode equals 30 (Succeeded), 31 (Failed), or 32 (Canceled)
  5. On statuscode 30, retrieve the operation result from the response body or the resource URL returned in the result
  6. On statuscode 31 or 32, read the error details from the response to surface a meaningful failure reason

Known gotchas

Related routes

Execute a Dynamics 365 Dataverse OData batch request with changesets for atomic multi-table writes
learn.microsoft.com · 6 steps · unrated
Use the Dynamics 365 Dataverse FetchXML API via the Web API to run aggregate and linked-entity queries
learn.microsoft.com/dynamics365 · 6 steps · unrated
Send multiple Dynamics 365 Web API operations in a single OData batch request
learn.microsoft.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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