Table

RetailReplenishmentRuleLines

Replenishment rule lines

Lines of a replenishment rule. Each line points to either a replenishment hierarchy node or a channel, and holds default and actual percent and weight values. The key is rule, type and related record.

Table name
RetailReplenishmentRuleLines
Module
Inventory management
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
RuleTypeRelationIdx
Replacement key
None
Key fields
RuleId, Type, RelationId
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RuleIdThe replenishment rule that the line belongs to.String
RetailReplenishmentRuleId
YesRetailReplenishmentRuleTable.RuleIdRetailReplenishmentRuleLineV2Entity
TypeShows whether the line refers to a replenishment hierarchy or a channel.Enum
RetailReplenishmentRuleType (enum)
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
RelationIdPoints to the hierarchy relationship or channel that the line applies to, depending on the type.Int64
RefRecId
NoOMHierarchyRelationship.RecIdRetailChannelTable.RecIdRetailReplenishmentRuleLineV2Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultPercentDefault percentage value for the line.Real
RetailPercent
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
DefaultWeightDefault weight value for the line.Real
RetailWeightEx1
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
DescriptionShort description of the line.String (40)
RetailDescriptionEx1
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
Exclude_DELYes/no flag with no label. The _DEL suffix suggests it is no longer in use.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyPercentPercentage value for the line.Real
RetailPercent
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
QtyWeightWeight value for the line.Real
RetailWeightEx1
NoRetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity
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

Indexes (1)

Relations (3)

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

  • OMHierarchyRelationship → OMHierarchyRelationship

    Join on RelationId = OMHierarchyRelationship.RecId, Type = RetailReplenishmentRuleType::GroupType

    Many RetailReplenishmentRuleLines records → zero or one OMHierarchyRelationship record

  • RetailChannelTable → RetailChannelTable

    Join on Type = RetailReplenishmentRuleType::LocationType, RelationId = RetailChannelTable.RecId

    Many RetailReplenishmentRuleLines records → zero or one RetailChannelTable record

  • RetailReplenishmentRuleTable → RetailReplenishmentRuleTable

    Join on RuleId = RetailReplenishmentRuleTable.RuleId

    Many RetailReplenishmentRuleLines records → exactly one RetailReplenishmentRuleTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailReplenishmentRuleLines; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk