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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventLocationIdWarehouse that the allocation applies to. | StringInventLocationId | Yes | InventLocation.InventLocationId | None |
ItemIdItem that the policy is assigned to. | String (20)ItemId | No | InventTable.ItemId | None |
ItemOrGroupShows whether the allocation is for a single item or for an item group. | EnumWHSItemStoragePolicyItemOrGroup (enum) | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProductVariantInventDimIdInventory dimensions that identify the product variant. | String (20)InventDimId | No | InventDim.inventDimId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WHSItemStoragePolicyIdItem storage policy that is being assigned. | String (20)WHSItemStoragePolicyId | Yes | WHSItemStoragePolicy.Id | None |
WHSItemStoragePolicyItemGroupIdStorage policy item group that the policy is assigned to. | String (20)WHSItemStoragePolicyItemGroupId | No | WHSItemStoragePolicyItemGroup.Id | None |
Indexes (5)
ItemIdIdxNot unique.
ItemStoragePolicyIdxWHSItemStoragePolicyId,InventLocationIdNot unique.
InventLocationIdIdxNot unique.
ItemStoragePolicyItemGroupIdxWHSItemStoragePolicyItemGroupId,WHSItemStoragePolicyId,ItemOrGroupNot unique.
AllocationMatchIdxInventLocationId,ItemId,ProductVariantInventDimId,WHSItemStoragePolicyItemGroupIdUnique.
Relations (5)
Each relation joins WHSItemStoragePolicyAllocation to another table on the fields shown.
WHSItemStoragePolicy→WHSItemStoragePolicyJoin on
WHSItemStoragePolicyId = WHSItemStoragePolicy.IdMany WHSItemStoragePolicyAllocation records → exactly one WHSItemStoragePolicy record
InventTable→InventTableJoin on
ItemId = InventTable.ItemId,ItemOrGroup = WHSItemStoragePolicyItemOrGroup::ItemMany WHSItemStoragePolicyAllocation records → exactly one InventTable record
InventDim→InventDimJoin on
ProductVariantInventDimId = InventDim.inventDimIdMany WHSItemStoragePolicyAllocation records → zero or one InventDim record
WHSItemStoragePolicyItemGroup→WHSItemStoragePolicyItemGroupJoin on
WHSItemStoragePolicyItemGroupId = WHSItemStoragePolicyItemGroup.Id,WHSItemStoragePolicyId = WHSItemStoragePolicyItemGroup.WHSItemStoragePolicyId,ItemOrGroup = WHSItemStoragePolicyItemOrGroup::GroupCardinality not set in the metadata.
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany 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.