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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ReplenishTemplateIdReplenishment template the line belongs to.String (20)
WHSReplenishTemplateId
YesWHSReplenishmentTemplate.ReplenishTemplateIdWHSWarehouseReplenishmentTemplateLineV2Entity
SeqNumSequence number of the line within the template.Integer
WHSSeqNum
YesWHSWarehouseReplenishmentTemplateLineV2Entity
ApplicableDemandWhich demand applies: full quantity or loose quantity.Enum
WHSApplicableDemand (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DemandIncrementWhether demand is rounded up or down.Enum
WHSDemandIncrement (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
DescriptionDescription of the line.String (60)
Description
NoWHSWarehouseReplenishmentTemplateLineV2Entity
EvalEmptyFixedYes/No setting: whether empty fixed locations are replenished.Enum
WHSEvalEmptyFixed
NoYes (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
InventLocationIdWarehouse the line applies to.String
InventLocationId
NoInventLocation.InventLocationIdWHSWarehouseReplenishmentTemplateLineV2Entity
ItemQuerySaved query that selects items, held as a container value.Container
WHSItemQuery
NoWHSWarehouseReplenishmentTemplateLineV2Entity
LocationQuerySaved query that selects locations, held as a container value.Container
WHSLocationQuery
NoWHSWarehouseReplenishmentTemplateLineV2Entity
LocDirHintCodeDirective code used by the line.String (20)
WHSLocDirHintCode
NoWHSLocDirHint.LocDirHintCodeWHSWarehouseReplenishmentTemplateLineV2Entity
MaxQtyMaximum quantity for the line.Real
WHSMaxQty
NoWHSWarehouseReplenishmentTemplateLineV2Entity
MinQtyMinimum quantity for the line.Real
WHSMinQty
NoWHSWarehouseReplenishmentTemplateLineV2Entity
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
ProductQueryModeWhether items are selected by a product query or a product variant query.Enum
WHSProductQueryMode (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
ProductVariantQuerySaved query that selects product variants, held as a container value.Container
WHSProductVariantQuery
NoWHSWarehouseReplenishmentTemplateLineV2Entity
QtyUOMUnit of the minimum and maximum quantities.String
WHSQtyUOM
NoUnitOfMeasure.SymbolWHSWarehouseReplenishmentTemplateLineV2Entity
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
ReplenFixedOnlyYes/No setting: whether only fixed locations are replenished.Enum
WHSReplenFixedOnly
NoYes (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
ReplenishmentStrategyReplenishment strategy: wave demand quantity, or maximum location capacity.Enum
WHSReplenishmentStrategyType
WHSReplenishmentStrategy (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
ReplenishmentThresholdScopeScope of the replenishment threshold: location or zone.Enum
WHSReplenishmentThresholdScope (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
ReplenishmentUOMUnit used for replenishment.String
WHSReplenishmentUOM
YesUnitOfMeasure.SymbolWHSWarehouseReplenishmentTemplateLineV2Entity
RequestTypeIdRequest type used by the line.String
WHSRequestTypeId
NoWHSRequestType.RequestTypeIdWHSWarehouseReplenishmentTemplateLineV2Entity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WarehouseGroupAllHow warehouses are selected: one warehouse, a warehouse group, or all.Enum
WhsWarehouseGroupAll (enum)
NoWHSWarehouseReplenishmentTemplateLineV2Entity
WarehouseGroupIdWarehouse group the line applies to.String (20)
WhsWarehouseGroupId
NoWhsWarehouseGroup.WarehouseGroupIdWHSWarehouseReplenishmentTemplateLineV2Entity
WorkTemplateCodeWork template used by the line.String (20)
WHSWorkTemplateCode
NoWHSWarehouseReplenishmentTemplateLineV2Entity
ZoneQuerySaved query that selects zones, held as a container value.Container
WHSZoneQuery
NoWHSWarehouseReplenishmentTemplateLineV2Entity

Indexes (2)

Relations (8)

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

  • ReplenishmentUOM → UnitOfMeasure

    Join on ReplenishmentUOM = UnitOfMeasure.Symbol

    Many WHSReplenishmentTemplateLine records → exactly one UnitOfMeasure record

  • UnitOfMeasure → UnitOfMeasure

    Join on QtyUOM = UnitOfMeasure.Symbol

    Many WHSReplenishmentTemplateLine records → zero or one UnitOfMeasure record

  • WHSLocDirHint → WHSLocDirHint

    Join on LocDirHintCode = WHSLocDirHint.LocDirHintCode

    Many WHSReplenishmentTemplateLine records → zero or one WHSLocDirHint record

  • WHSReplenishmentTemplate → WHSReplenishmentTemplate

    Join on ReplenishTemplateId = WHSReplenishmentTemplate.ReplenishTemplateId

    Many WHSReplenishmentTemplateLine records → exactly one WHSReplenishmentTemplate record

  • WHSRequestType → WHSRequestType

    Join on RequestTypeId = WHSRequestType.RequestTypeId

    Many WHSReplenishmentTemplateLine records → zero or one WHSRequestType record

  • WHSWorkTemplateTable → WHSWorkTemplateTable

    Join on WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode, WHSWorkTemplateTable.WorkTransType = WHSWorkTransType::Replenishment

    Many WHSReplenishmentTemplateLine records → zero or one WHSWorkTemplateTable record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many WHSReplenishmentTemplateLine records → zero or one InventLocation record

  • WhsWarehouseGroup → WhsWarehouseGroup

    Join on WarehouseGroupId = WhsWarehouseGroup.WarehouseGroupId

    Many 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.

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

Email sales@drdynamics.co.uk