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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RuleIdThe replenishment rule that the line belongs to. | StringRetailReplenishmentRuleId | Yes | RetailReplenishmentRuleTable.RuleId | RetailReplenishmentRuleLineV2Entity |
TypeShows whether the line refers to a replenishment hierarchy or a channel. | EnumRetailReplenishmentRuleType (enum) | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
RelationIdPoints to the hierarchy relationship or channel that the line applies to, depending on the type. | Int64RefRecId | No | OMHierarchyRelationship.RecIdRetailChannelTable.RecId | RetailReplenishmentRuleLineV2Entity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultPercentDefault percentage value for the line. | RealRetailPercent | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
DefaultWeightDefault weight value for the line. | RealRetailWeightEx1 | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
DescriptionShort description of the line. | String (40)RetailDescriptionEx1 | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
Exclude_DELYes/no flag with no label. The _DEL suffix suggests it is no longer in use.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyPercentPercentage value for the line. | RealRetailPercent | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
QtyWeightWeight value for the line. | RealRetailWeightEx1 | No | RetailReplenishmentRuleLineV2EntityRetailReplenishmentRuleLineEntity | |
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 |
Indexes (1)
RuleTypeRelationIdxPrimary indexUnique, alternate key.
Relations (3)
Each relation joins RetailReplenishmentRuleLines to another table on the fields shown.
OMHierarchyRelationship→OMHierarchyRelationshipJoin on
RelationId = OMHierarchyRelationship.RecId,Type = RetailReplenishmentRuleType::GroupTypeMany RetailReplenishmentRuleLines records → zero or one OMHierarchyRelationship record
RetailChannelTable→RetailChannelTableJoin on
Type = RetailReplenishmentRuleType::LocationType,RelationId = RetailChannelTable.RecIdMany RetailReplenishmentRuleLines records → zero or one RetailChannelTable record
RetailReplenishmentRuleTable→RetailReplenishmentRuleTableJoin on
RuleId = RetailReplenishmentRuleTable.RuleIdMany 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.
RetailReplenishmentRuleLineV2Entity· 8 fields from this tableRetailReplenishmentRuleLineEntity· 6 fields from this table
Need help with RetailReplenishmentRuleLines in a report, an integration or a migration? Talk to Dr Dynamics.