Skip to content
D365 Reference

InventLocation

group

Warehouse master — one row per warehouse (inventory location) with its site and type

Module: InventoryCompany-partitioned (DataAreaId)

Fields

15 fields · 1 key

KeyFieldEDTDescriptionTypeLengthFlags
KeyInventLocationIdInventLocationIdThe warehouse codestring10
InventSiteIdInventSiteIdSite the warehouse belongs tostring10
NameWarehouse namestring60
InventLocationTypeWhether the warehouse is a default, quarantine, or transit locationenum
WHSEnabledWhether advanced warehouse management (WHS) processes run in this warehouseenum
DefaultStatusIdDefault inventory status applied to receipts in this warehousestring
InventLocationIdQuarantineInventLocationIdQuarantine warehouse paired with this onestring
InventLocationIdTransitInventLocationIdTransit warehouse used for transfer orders shipping from this onestring
InventLocationIdReqMainInventLocationIdMain warehouse this one is refilled from in master planningstring
ReqRefillWhether master planning refills this warehouse from its main warehouseenum
ManualWhether items in this warehouse are planned manually rather than by master planningenum
ReqCalendarIdWorking-time calendar master planning uses for this warehousestring
InventLocationLevelLevel of the warehouse in a multi-level refill hierarchyint
VendAccountVendAccountVendor account, for externally located (vendor-managed) warehousesstring
BranchNumberBranch number used by localizations that report warehouses as branchesstring

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

  • WMSLocationInventLocationforeign key · N:1
    ON wmslocation.inventlocationid = inventlocation.inventlocationid
  • InventLocationInventSiteforeign key · N:1
    ON inventlocation.inventsiteid = inventsite.siteid

Data Entities That Expose This Table