Dynamics 365 Finance and Supply Chain OData URL Builder
Dynamics 365 Finance and Supply Chain exposes public data entities as OData v4 collections under the /data path of your environment. Getting the URL syntax, cross-company flag and authentication right is where most first calls fail. Fill in the fields to generate both a readable and an encoded version.
Fill in
Host without https://
OData GET request
GET https://contoso-test.sandbox.operations.dynamics.com/data/ReleasedProductsV2?cross-company=false&$filter=dataAreaId eq 'usmf' and ProductType eq Microsoft.Dynamics.DataEntities.EcoResProductType'Item'&$select=ItemNumber,ProductName,ProductGroupId&$orderby=ItemNumber&$top=100 Authorization: Bearer <access token> Accept: application/json OData-MaxVersion: 4.0 OData-Version: 4.0
Same request, URL encoded for a browser or Power Query
https://contoso-test.sandbox.operations.dynamics.com/data/ReleasedProductsV2?cross-company=false&$filter=dataAreaId%20eq%20%27usmf%27&$select=ItemNumber,ProductName,ProductGroupId&$orderby=ItemNumber&$top=100
Token request (client credentials)
POST https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token Content-Type: application/x-www-form-urlencoded grant_type=client_credentials&client_id=11111111-1111-1111-1111-111111111111&client_secret=<secret>&scope=https://contoso-test.sandbox.operations.dynamics.com/.default
Count and single record patterns
Count: GET https://contoso-test.sandbox.operations.dynamics.com/data/ReleasedProductsV2/$count?cross-company=false&$filter=dataAreaId eq 'usmf' Single record by key: GET https://contoso-test.sandbox.operations.dynamics.com/data/ReleasedProductsV2(dataAreaId='usmf',ItemNumber='A0001')
Key fields and enum literal syntax differ by entity. Check the entity key in Data management > Data entities and test enum filters in a sandbox. Application registration must also be added to Microsoft Entra applications in System administration > Setup. Never paste real secrets into shared documents.
Governed read access to D365 data
Want these queries behind a read-only assistant that shows its query and honors D365 roles? Optional follow-up, the builder is free.
Optional. The tool and every export work without this. No spam.
How to use the builder
Enter your environment host, the public collection name of the entity, the legal entity and the query options. Copy the request into Postman, Insomnia, curl or Power Query. Replace the bearer token with one obtained from the token call shown, using an app registration that is registered in D365 under System administration > Setup > Microsoft Entra applications and mapped to a user.
- Use $select to limit columns, it matters for performance
- Use $top while testing and paginate with the next link in real runs
- Add cross-company=true only when you intend to read across legal entities
- Filter on dataAreaId for company-specific entities
Query options that matter
OData v4 options in F&O include $filter, $select, $orderby, $top, $count and $expand where navigation properties exist. Enum values need the full namespace literal, such as Microsoft.Dynamics.DataEntities.NoYes'Yes', which surprises people used to plain strings. String literals use single quotes and spaces in a browser URL must be encoded. Server paging returns a next link, so loop until it is absent.
Authentication and limits
Access uses Microsoft Entra ID tokens for the environment as the resource. Service protection limits and priority-based throttling apply, so a burst of calls can return HTTP 429 with a retry-after header. Build retry with back-off into integrations. For bulk movement, the Data management package API or recurring integrations usually beat paging OData.
Common mistakes
Frequent problems are forgetting cross-company so only the default company returns rows, using the entity label instead of the public collection name, wrong enum literal syntax, and reading huge result sets without $select. Another is using the sandbox host in a production script, so keep the environment in a variable.
Frequently Asked Questions
What is the base URL for D365 F&O OData?
It is https://your-environment-host/data followed by the public entity collection name, for example /data/CustomersV3. The host is the URL you use to sign in to the finance and operations client, not the Power Platform environment URL.
Why do I only see data for one company?
OData returns the default company of the calling user unless you pass cross-company=true. When you do, filter on dataAreaId if you only want certain legal entities, otherwise you may pull far more data than intended.
How do I filter on an enum field?
Use the full enum literal, for example $filter=SomeField eq Microsoft.Dynamics.DataEntities.NoYes'Yes'. The namespace and enum name come from the entity metadata, which you can read at /data/$metadata for your environment.
How do I page through large results?
Follow the @odata.nextLink value in each response until it is no longer returned. Do not rely on $skip for large sets. Use $select to shrink the payload and consider the data management package API for bulk extraction.
If your team needs these reads wrapped into a governed, read-only question-and-answer layer over D365, we can discuss how that is built on your own infrastructure.
Related Tools
D365 F&O Manufacturing Data Entities Reference
A searchable list of the data entities consultants reach for first when loading or integrating manufacturing data in D365 F&O, with the area, purpose and import notes.
Microsoft DynamicsD365 Data Management Import Worksheet Template
Track every D365 DMF import by entity, sequence, legal entity, rows loaded and errors, with an automatic error rate for cutover reporting.
Microsoft DynamicsD365 Batch Job Checklist
A practical checklist to design, review and monitor batch jobs in D365 F&O, covering batch groups, recurrence, alerts, cleanup jobs and go-live checks.
Microsoft DynamicsD365 Security Role Design Worksheet
Map job functions to custom security roles, duties, data restrictions and segregation-of-duties conflicts, with a risk score per role for review.
More Microsoft Dynamics tools
See all- D365 One Version Update Test Checklist
- D365 Finance and Supply Chain Functional Design Document Template
- D365 Finance and Supply Chain Fit-Gap Analysis Worksheet
- D365 Finance and Supply Chain Data Migration Mapping Worksheet
- D365 Finance and Supply Chain Cutover Plan Template
- D365 Finance and Supply Chain UAT Test Case Worksheet
- D365 Finance and Supply Chain Integration Interface Register
- D365 Finance and Supply Chain Change Request Form Template
- D365 Finance and Supply Chain Implementation Effort Estimator
Keep exploring
Free tools
- D365 Finance and Operations OData URL and Token Request BuilderGenerate the OData request and OAuth token call to read data entities from D365 F&O during an AX migration or validation.
- D365 Finance and Supply Chain Change Request Form TemplateA change request form for D365 projects and production support with impact on scope, effort, security, data and testing, plus approval lines.
- D365 Finance and Supply Chain Data Migration Mapping WorksheetAn editable source-to-target field mapping sheet with transformation rule, owner and load status for D365 F&O data migration.
ERP fixes and how-tos
- Dynamics 365 Supply Chain Management API: OData, Custom Services and Data PackagesD365 Supply Chain / F&O APIs explained: OData data entities, custom services, the data management package API, Entra ID authentication and when to use each.
- Dynamics 365 Supply Chain Wave Planning and Inventory JournalsHow wave planning and inventory journals work in Dynamics 365 Supply Chain Management: wave templates, wave steps, work templates, journal names and posting.
- Dynamics 365 Supply Chain Warehouse Only Mode: What It Is and Its LimitsWhat warehouse management only mode is in Dynamics 365 Supply Chain Management, how to enable it, how orders arrive as shipment orders, and its limits.
AI on your ERP
- AI for Dynamics 365 Finance and Supply Chain beyond CopilotAI for D365 Finance and Supply Chain beyond Microsoft Copilot: private LLM grounded on data entities and OData, on-prem-capable via Local Business Data.
- AI for Dynamics 365 Finance and Supply Chain ProcurementAI for Dynamics 365 Finance and Supply Chain procurement: purchase orders, vendor invoices, product receipts and approvals via OData and data lake exports.
Integrations
- How to use ChatGPT with Dynamics 365 Finance and Supply ChainUsing ChatGPT with Dynamics 365 Finance and Supply Chain: custom GPT actions over OData, exports versus live access, data controls and when to go private.
- How to add AI agents to Dynamics 365 Finance and Supply ChainHow to add AI agents to Dynamics 365 Finance and Supply Chain: tool layer over OData and business events, approval before writes, on-prem and cloud options.
Software
- Microsoft Dynamics 365 Finance and Supply ChainDynamics 365 Finance and Supply Chain Management explained for manufacturers: modules, data entities, OData, deployment, strengths, limits and alternatives.
- Dynamics 365 Field ServiceDynamics 365 Field Service handles work orders, resource scheduling and mobile technicians on Microsoft Dataverse. Modules, integrations and alternatives.