D365 Reference
InventSite
groupSite master — one row per operational site, the top of the inventory dimension hierarchy that warehouses roll up to
Module: InventoryCompany-partitioned (DataAreaId)
Notes
The key column is SiteId (not InventSiteId) — other tables reference it through the InventSiteId EDT.
Fields
8 fields · 1 key
| Key | Field | EDT | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | SiteId | InventSiteId | The site code — the top inventory dimension; other tables reference it as InventSiteId | string | ||
| Name | Site name | string | ||||
| Timezone | Time zone of the site, used when converting order dates across sites | enum | ||||
| DefaultDimension | RecId | RecId of the site's default financial-dimension value set in DimensionAttributeValueSet | int64 | |||
| DefaultInventStatusId | Default inventory status applied to receipts at the site | string | ||||
| OrderEntryDeadlineGroupId | Order-entry deadline group governing same-day cutoffs for the site | string | ||||
| TaxBranchRefRecId | RecId | RecId of the tax branch (fiscal establishment) tied to the site, where localizations use it | int64 | |||
| IsReceivingWarehouseOverrideAllowed | Whether transfer receipts may override the receiving warehouse at this site | enum |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading InventSiteon Databricks — enums are decoded, 1900-01-01 dates are wrapped to NULL, and the DataAreaId anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.
Query parameters
-- ============================================================
-- Table : InventSite Site master — one row per operational site, the top of the inventory dimension hierarchy that warehouses roll up to
-- Purpose: Column-selected read of InventSite — auto-generated from field metadata
-- Grain : One row per company (dataareaid) + SiteId
-- Notes : Auto-generated skeleton for Synapse Link / Fabric Link-landed F&O data (lowercase column names). Enums decoded inline where verified; datetimes stored in UTC; 1900-01-01 dates are sentinels mapped to NULL. System/audit columns omitted — see the quirks guide.
-- ============================================================
SELECT
i.siteid AS "The site code — the top inventory dimension; other tables reference it as InventSiteId",
i.name AS "Site name",
i.timezone AS "Time zone of the site, used when converting order dates across sites", -- enum: decode i.timezone via GlobalOptionsetMetadata join — see quirks guide #enums
i.defaultdimension AS "RecId of the site's default financial-dimension value set in DimensionAttributeValueSet",
i.defaultinventstatusid AS "Default inventory status applied to receipts at the site",
i.orderentrydeadlinegroupid AS "Order-entry deadline group governing same-day cutoffs for the site",
i.taxbranchrefrecid AS "RecId of the tax branch (fiscal establishment) tied to the site, where localizations use it",
i.isreceivingwarehouseoverrideallowed AS "Whether transfer receipts may override the receiving warehouse at this site" -- enum: decode i.isreceivingwarehouseoverrideallowed via GlobalOptionsetMetadata join — see quirks guide #enums
FROM <catalog>.<schema>.inventsite i
-- Resolve DimensionAttributeValueSet (via DefaultDimension): uncomment to join on its RecId surrogate key
-- LEFT JOIN <catalog>.<schema>.dimensionattributevalueset dim ON dim.recid = i.defaultdimension
WHERE
i.dataareaid = '<company>'
-- AND i.siteid = '<InventSiteId>'
ORDER BY i.siteid;4 parameters not filled: <catalog>, <schema>, <company>, <InventSiteId>
Relationships
1-hop neighbors — click a table to navigate there. RecId and InventDim edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON inventlocation.inventsiteid = inventsite.siteidON inventsite.defaultdimension = dimensionattributevalueset.recid
Data Entities That Expose This Table
- InventOperationalSiteEntityOperational sites — the site master export, one record per site with its time zone, default status, and primary address flattened into columnsPrimary source
- InventWarehouseEntityWarehouses — the warehouse master export, one record per warehouse with its site, type, and warehouse-management settings