Table

WHSItemStoragePolicyAllocation

Storage policy allocation

Assigns an item storage policy to an item or to a storage policy item group. It can also name a product variant's inventory dimensions and a warehouse. The table has no defined key.

Table name
WHSItemStoragePolicyAllocation
Module
Warehouse
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventLocationIdWarehouse that the allocation applies to.String
InventLocationId
YesInventLocation.InventLocationIdNone
ItemIdItem that the policy is assigned to.String (20)
ItemId
NoInventTable.ItemIdNone
ItemOrGroupShows whether the allocation is for a single item or for an item group.Enum
WHSItemStoragePolicyItemOrGroup (enum)
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProductVariantInventDimIdInventory dimensions that identify the product variant.String (20)
InventDimId
NoInventDim.inventDimIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WHSItemStoragePolicyIdItem storage policy that is being assigned.String (20)
WHSItemStoragePolicyId
YesWHSItemStoragePolicy.IdNone
WHSItemStoragePolicyItemGroupIdStorage policy item group that the policy is assigned to.String (20)
WHSItemStoragePolicyItemGroupId
NoWHSItemStoragePolicyItemGroup.IdNone

Indexes (5)

Relations (5)

Each relation joins WHSItemStoragePolicyAllocation to another table on the fields shown.

  • WHSItemStoragePolicy → WHSItemStoragePolicy

    Join on WHSItemStoragePolicyId = WHSItemStoragePolicy.Id

    Many WHSItemStoragePolicyAllocation records → exactly one WHSItemStoragePolicy record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId, ItemOrGroup = WHSItemStoragePolicyItemOrGroup::Item

    Many WHSItemStoragePolicyAllocation records → exactly one InventTable record

  • InventDim → InventDim

    Join on ProductVariantInventDimId = InventDim.inventDimId

    Many WHSItemStoragePolicyAllocation records → zero or one InventDim record

  • WHSItemStoragePolicyItemGroup → WHSItemStoragePolicyItemGroup

    Join on WHSItemStoragePolicyItemGroupId = WHSItemStoragePolicyItemGroup.Id, WHSItemStoragePolicyId = WHSItemStoragePolicyItemGroup.WHSItemStoragePolicyId, ItemOrGroup = WHSItemStoragePolicyItemOrGroup::Group

    Cardinality not set in the metadata.

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many WHSItemStoragePolicyAllocation records → exactly one InventLocation record

Get this data out

No public entity reads from WHSItemStoragePolicyAllocation. Its data is only reachable through the application, a custom entity or a database export.

Need help with WHSItemStoragePolicyAllocation in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk