Table
WHSReplenishmentTemplateLine
Replenishment Template Lines
Holds the lines of a replenishment template, keyed by template ID and sequence number. Each line sets quantities, units, queries, a work template, a directive code and the warehouse or warehouse group it covers.
- Table name
WHSReplenishmentTemplateLine- Module
Inventory- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
ReplenishmentTemplateLineIdx- Replacement key
ReplenishmentTemplateLineIdx- Key fields
ReplenishTemplateId, SeqNum- Model
Foundation
Fields (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ReplenishTemplateIdReplenishment template the line belongs to. | String (20)WHSReplenishTemplateId | Yes | WHSReplenishmentTemplate.ReplenishTemplateId | WHSWarehouseReplenishmentTemplateLineV2Entity |
SeqNumSequence number of the line within the template. | IntegerWHSSeqNum | Yes | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ApplicableDemandWhich demand applies: full quantity or loose quantity. | EnumWHSApplicableDemand (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DemandIncrementWhether demand is rounded up or down. | EnumWHSDemandIncrement (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
DescriptionDescription of the line. | String (60)Description | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
EvalEmptyFixedYes/No setting: whether empty fixed locations are replenished. | EnumWHSEvalEmptyFixedNoYes (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
InventLocationIdWarehouse the line applies to. | StringInventLocationId | No | InventLocation.InventLocationId | WHSWarehouseReplenishmentTemplateLineV2Entity |
ItemQuerySaved query that selects items, held as a container value. | ContainerWHSItemQuery | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
LocationQuerySaved query that selects locations, held as a container value. | ContainerWHSLocationQuery | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
LocDirHintCodeDirective code used by the line. | String (20)WHSLocDirHintCode | No | WHSLocDirHint.LocDirHintCode | WHSWarehouseReplenishmentTemplateLineV2Entity |
MaxQtyMaximum quantity for the line. | RealWHSMaxQty | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
MinQtyMinimum quantity for the line. | RealWHSMinQty | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
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 | |
ProductQueryModeWhether items are selected by a product query or a product variant query. | EnumWHSProductQueryMode (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ProductVariantQuerySaved query that selects product variants, held as a container value. | ContainerWHSProductVariantQuery | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
QtyUOMUnit of the minimum and maximum quantities. | StringWHSQtyUOM | No | UnitOfMeasure.Symbol | WHSWarehouseReplenishmentTemplateLineV2Entity |
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 | |
ReplenFixedOnlyYes/No setting: whether only fixed locations are replenished. | EnumWHSReplenFixedOnlyNoYes (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ReplenishmentStrategyReplenishment strategy: wave demand quantity, or maximum location capacity. | EnumWHSReplenishmentStrategyTypeWHSReplenishmentStrategy (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ReplenishmentThresholdScopeScope of the replenishment threshold: location or zone. | EnumWHSReplenishmentThresholdScope (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ReplenishmentUOMUnit used for replenishment. | StringWHSReplenishmentUOM | Yes | UnitOfMeasure.Symbol | WHSWarehouseReplenishmentTemplateLineV2Entity |
RequestTypeIdRequest type used by the line. | StringWHSRequestTypeId | No | WHSRequestType.RequestTypeId | WHSWarehouseReplenishmentTemplateLineV2Entity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WarehouseGroupAllHow warehouses are selected: one warehouse, a warehouse group, or all. | EnumWhsWarehouseGroupAll (enum) | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
WarehouseGroupIdWarehouse group the line applies to. | String (20)WhsWarehouseGroupId | No | WhsWarehouseGroup.WarehouseGroupId | WHSWarehouseReplenishmentTemplateLineV2Entity |
WorkTemplateCodeWork template used by the line. | String (20)WHSWorkTemplateCode | No | WHSWarehouseReplenishmentTemplateLineV2Entity | |
ZoneQuerySaved query that selects zones, held as a container value. | ContainerWHSZoneQuery | No | WHSWarehouseReplenishmentTemplateLineV2Entity |
Indexes (2)
ReplenishmentTemplateLineIdxPrimary indexReplacement keyUnique, alternate key.
WarehouseGroupIdIdxNot unique.
Relations (8)
Each relation joins WHSReplenishmentTemplateLine to another table on the fields shown.
ReplenishmentUOM→UnitOfMeasureJoin on
ReplenishmentUOM = UnitOfMeasure.SymbolMany WHSReplenishmentTemplateLine records → exactly one UnitOfMeasure record
UnitOfMeasure→UnitOfMeasureJoin on
QtyUOM = UnitOfMeasure.SymbolMany WHSReplenishmentTemplateLine records → zero or one UnitOfMeasure record
WHSLocDirHint→WHSLocDirHintJoin on
LocDirHintCode = WHSLocDirHint.LocDirHintCodeMany WHSReplenishmentTemplateLine records → zero or one WHSLocDirHint record
WHSReplenishmentTemplate→WHSReplenishmentTemplateJoin on
ReplenishTemplateId = WHSReplenishmentTemplate.ReplenishTemplateIdMany WHSReplenishmentTemplateLine records → exactly one WHSReplenishmentTemplate record
WHSRequestType→WHSRequestTypeJoin on
RequestTypeId = WHSRequestType.RequestTypeIdMany WHSReplenishmentTemplateLine records → zero or one WHSRequestType record
WHSWorkTemplateTable→WHSWorkTemplateTableJoin on
WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode,WHSWorkTemplateTable.WorkTransType = WHSWorkTransType::ReplenishmentMany WHSReplenishmentTemplateLine records → zero or one WHSWorkTemplateTable record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany WHSReplenishmentTemplateLine records → zero or one InventLocation record
WhsWarehouseGroup→WhsWarehouseGroupJoin on
WarehouseGroupId = WhsWarehouseGroup.WarehouseGroupIdMany WHSReplenishmentTemplateLine records → zero or one WhsWarehouseGroup record
Get this data out
Tables are not exposed directly. These public entities read from WHSReplenishmentTemplateLine; use one of them in Power BI, Power Platform or a data management project.
WHSWarehouseReplenishmentTemplateLineV2Entity· 24 fields from this table
Need help with WHSReplenishmentTemplateLine in a report, an integration or a migration? Talk to Dr Dynamics.