D365 Reference
InventLocation
groupWarehouse master — one row per warehouse (inventory location) with its site and type
Module: InventoryCompany-partitioned (DataAreaId)
Fields
15 fields · 1 key
| Key | Field | EDT | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | InventLocationId | InventLocationId | The warehouse code | string | 10 | |
| InventSiteId | InventSiteId | Site the warehouse belongs to | string | 10 | ||
| Name | Warehouse name | string | 60 | |||
| InventLocationType | Whether the warehouse is a default, quarantine, or transit location | enum | ||||
| WHSEnabled | Whether advanced warehouse management (WHS) processes run in this warehouse | enum | ||||
| DefaultStatusId | Default inventory status applied to receipts in this warehouse | string | ||||
| InventLocationIdQuarantine | InventLocationId | Quarantine warehouse paired with this one | string | |||
| InventLocationIdTransit | InventLocationId | Transit warehouse used for transfer orders shipping from this one | string | |||
| InventLocationIdReqMain | InventLocationId | Main warehouse this one is refilled from in master planning | string | |||
| ReqRefill | Whether master planning refills this warehouse from its main warehouse | enum | ||||
| Manual | Whether items in this warehouse are planned manually rather than by master planning | enum | ||||
| ReqCalendarId | Working-time calendar master planning uses for this warehouse | string | ||||
| InventLocationLevel | Level of the warehouse in a multi-level refill hierarchy | int | ||||
| VendAccount | VendAccount | Vendor account, for externally located (vendor-managed) warehouses | string | |||
| BranchNumber | Branch number used by localizations that report warehouses as branches | string |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading InventLocationon 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 : InventLocation Warehouse master — one row per warehouse (inventory location) with its site and type
-- Purpose: Column-selected read of InventLocation — auto-generated from field metadata
-- Grain : One row per company (dataareaid) + InventLocationId
-- 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
loc.inventlocationid AS "The warehouse code",
loc.inventsiteid AS "Site the warehouse belongs to",
loc.name AS "Warehouse name",
loc.inventlocationtype AS "Whether the warehouse is a default, quarantine, or transit location", -- enum: decode loc.inventlocationtype via GlobalOptionsetMetadata join — see quirks guide #enums
loc.whsenabled AS "Whether advanced warehouse management (WHS) processes run in this warehouse", -- enum: decode loc.whsenabled via GlobalOptionsetMetadata join — see quirks guide #enums
loc.defaultstatusid AS "Default inventory status applied to receipts in this warehouse",
loc.inventlocationidquarantine AS "Quarantine warehouse paired with this one",
loc.inventlocationidtransit AS "Transit warehouse used for transfer orders shipping from this one",
loc.inventlocationidreqmain AS "Main warehouse this one is refilled from in master planning",
loc.reqrefill AS "Whether master planning refills this warehouse from its main warehouse", -- enum: decode loc.reqrefill via GlobalOptionsetMetadata join — see quirks guide #enums
loc.manual AS "Whether items in this warehouse are planned manually rather than by master planning", -- enum: decode loc.manual via GlobalOptionsetMetadata join — see quirks guide #enums
loc.reqcalendarid AS "Working-time calendar master planning uses for this warehouse",
loc.inventlocationlevel AS "Level of the warehouse in a multi-level refill hierarchy",
loc.vendaccount AS "Vendor account, for externally located (vendor-managed) warehouses",
loc.branchnumber AS "Branch number used by localizations that report warehouses as branches"
FROM <catalog>.<schema>.inventlocation loc
WHERE
loc.dataareaid = '<company>'
-- AND loc.inventlocationid = '<InventLocationId>'
ORDER BY loc.inventlocationid;4 parameters not filled: <catalog>, <schema>, <company>, <InventLocationId>
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 wmslocation.inventlocationid = inventlocation.inventlocationidON inventlocation.inventsiteid = inventsite.siteid