Data entity
RetailReplenishmentRuleLineV2Entity
Holds the lines of a replenishment rule. The key is rule, type and reference. Lines can point to organisation units or retail channels such as stores, direct sales, call centre and online channels. Each line has a weight and a percent, with default values, and replenishment hierarchy validity dates.
- Entity name
RetailReplenishmentRuleLineV2Entity- Public entity name
ReplenishmentRuleLinesV2- OData collection
ReplenishmentRuleLinesV2- Category
Not set- Module
Inventory and advanced warehouse- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
ReplenishmentRule, Type, RelationId- Staging table
RetailReplenishmentRuleLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ReplenishmentRuleLinesV2- Dataverse virtual table
mserp_retailreplenishmentrulelinev2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailReplenishmentRuleLines· rootRetailReplenishmentRuleTable· OuterJoin toRetailReplenishmentRuleLines· read-onlyOMHierarchyRelationship· OuterJoin toRetailReplenishmentRuleLines· read-onlyOMHierarchyType· OuterJoin toOMHierarchyRelationship· read-onlyOMInternalOrganization· OuterJoin toOMHierarchyRelationship· read-onlyCompanyInfo· Derived toOMInternalOrganizationOMOperatingUnit· Derived toOMInternalOrganizationOMTeam· Derived toOMInternalOrganizationRetailChannelTable· OuterJoin toRetailReplenishmentRuleLines· read-onlyRetailChannelTable_RetailStoreTable(tableRetailStoreTable) · Derived toRetailChannelTableRetailChannelTable_RetailDirectSalesChannel(tableRetailDirectSalesChannel) · Derived toRetailChannelTableRetailChannelTable_RetailMCRChannelTable(tableRetailMCRChannelTable) · Derived toRetailChannelTableRetailChannelTable_RetailOnlineChannelTable(tableRetailOnlineChannelTable) · Derived toRetailChannelTable
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ReplenishmentRuleThe replenishment rule that the line belongs to. | StringRetailReplenishmentRuleId | Yes | Yes | RetailReplenishmentRuleTable.RuleId | RetailReplenishmentRuleLines.RuleId |
TypeShows whether the line refers to a replenishment hierarchy or a channel. | Enum
| Yes | Yes | RetailReplenishmentRuleLines.Type | |
RelationIdPoints to the hierarchy relationship or channel that the line applies to, depending on the type. | Int64RefRecId | Yes | Yes | OMHierarchyRelationship.RecIdRetailChannelTable.RecId | RetailReplenishmentRuleLines.RelationId |
ReplenishmentHierarchyTypeNameName of the hierarchy type. | String (60)Name | No | Yes | OMHierarchyType.Name | |
ReplenishmentOrganizationPartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | Yes | DirPartyTable.PartyNumber | |
ReplenishmentHierarchyValidFromThe date and time from which the relationship is valid. | UtcDateTimeValidFromDateTime | No | Yes | OMHierarchyRelationship.ValidFrom | |
ReplenishmentHierarchyValidToThe date and time until which the relationship is valid. | UtcDateTimeValidToDateTime | No | Yes | OMHierarchyRelationship.ValidTo | |
RetailChannelIdIdentifier of the retail channel. | String (15)RetailChannelId | No | Yes | RetailChannelTable.RetailChannelId | |
DescriptionShort description of the line. | String (40)RetailDescriptionEx1 | No | Yes | RetailReplenishmentRuleLines.Description | |
WeightWeight value for the line. | RealRetailWeightEx1 | No | Yes | RetailReplenishmentRuleLines.QtyWeight | |
PercentPercentage value for the line. | RealRetailPercent | No | Yes | RetailReplenishmentRuleLines.QtyPercent | |
DefaultWeightDefault weight value for the line. | RealRetailWeightEx1 | No | Yes | RetailReplenishmentRuleLines.DefaultWeight | |
DefaultPercentDefault percentage value for the line. | RealRetailPercent | No | Yes | RetailReplenishmentRuleLines.DefaultPercent |
Foreign keys (3)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
ReplenishmentRule→RetailReplenishmentRuleTable.RuleId(key of RetailReplenishmentRuleTable)Many RetailReplenishmentRuleLines records → exactly one RetailReplenishmentRuleTable record
RetailReplenishmentRuleTable details: see RetailReplenishmentRuleEntity, RetailReplenishmentRuleLineEntity
RelationId→OMHierarchyRelationship.RecId(key of OMHierarchyRelationship)Relation also requires Type = RetailReplenishmentRuleType::GroupType.
Many RetailReplenishmentRuleLines records → zero or one OMHierarchyRelationship record
OMHierarchyRelationship details: see OMOrganizationHierarchyPublishedEntity, OMOrganizationHierarchyPublishedV2Entity, RetailBuyersPushEntity
RelationId→RetailChannelTable.RecId(key of RetailChannelTable)Relation also requires Type = RetailReplenishmentRuleType::LocationType.
Many RetailReplenishmentRuleLines records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
Need help with RetailReplenishmentRuleLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.