Table
RetailPeriodicDiscountLine
Periodic discount line
Line of a periodic discount. Each line links to a discount header and can include or exclude a product group. It can also carry a percentage, a unit, required amount or quantity and pricing attribute settings. It has no declared key.
- Table name
RetailPeriodicDiscountLine- Module
Commerce merchandising- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ApplicabilityIdSystem record ID of the price attribute values that set when the line applies. | Int64RefRecId | No | PricingRuleApplicability.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the line. | String (-1)RetailMemo | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more | |
DiscountPercentOrValuePercentage taken off the price on this line. | RealRetailDiscountPercentValue | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more | |
InstanceRelationTypePurpose not clear from the metadata.low confidence | Int64RelationType | No | None | |
InventDimIdInventory dimension combination of the line. Points to an inventory dimension record. | String (20)InventDimId | No | InventDim.inventDimId | GUPMarginComponentPriceAdjustmentLineEntityGUPRetailDiscountLineEntity |
IsDiscountApplyingLineShows whether this is a line that the discount is applied to. | EnumRetailIsDiscountApplyingLineNoYes (enum) | No | GUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntityRetailDiscountLineEntityand 1 more | |
IsDiscountCodeRequiredShows whether a coupon code must be entered for the line. | EnumRetailDiscountCodeRequiredNoYes (enum) | No | None | |
IsMandatoryShows whether the line is mandatory. | EnumNoYesIdNoYes (enum) | No | GUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity | |
IsPropertyBasedPurpose not clear from the metadata.low confidence | EnumNoYes (enum) | No | None | |
LeastAmountSmallest line amount required, as the label says. | RealPriceDiscAmount | No | GUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity | |
LeastQuantitySmallest line quantity required. | RealGUPLeastQuantity | No | GUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity | |
LineNumNumber of the line within the discount. | RealLineNum | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 4 more | |
LinePricingGroupCodeWhether the line applies to a group or to all. | EnumGUPPricingAttributeGroupCodeLineGUPGroupAll (enum) | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more | |
LinePricingRuleSystem record ID of the price rule used on the line. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more |
LineTypeWhether the line includes or excludes the products it covers. | EnumRetailDiscountLineTypeRetailDiscountLineIncludeExcludeTypeBase (enum) | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more | |
NameName of the line. | String (60)Name | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more | |
OfferIdDiscount that the line belongs to. Points to the periodic discount. | String (20)RetailOfferIdEx3 | Yes | RetailPeriodicDiscount.OfferId | RetailDiscountLineEntityRetailDiscountLineV2EntityGUPDiscountClaimDistributionDiscountLineEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceAttributeGroupCombinationRecIdSystem record ID of the price attribute group combination used by the line. | Int64RecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PricingAttributesLineAreMatchedShows whether the pricing attributes of the line must be matched. | EnumGUPPricingAttributesAreMatchedNoYes (enum) | No | None | |
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 | |
RetailGroupMemberLineSystem record ID of the group member line that is linked. | Int64RefRecId | Yes | RetailGroupMemberLine.RecId | RetailDiscountLineEntity |
StatusShows whether the line is enabled or disabled. | EnumRetailDisabledEnabled (enum) | No | None | |
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 | |
UnitAppliesToAllShows whether the line applies to all units. | EnumNoYesIdNoYes (enum) | No | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more | |
UnitOfMeasureUnit for the line. Points to a unit record. | Int64UnitOfMeasureRecId | No | UnitOfMeasure.RecId | GUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 2 more |
Indexes (6)
OfferLineIdxUnique, alternate key.
RetailGroupMemberLineIdxRetailGroupMemberLine,LineType,OfferId,InstanceRelationTypeUnique.
OfferIdGroupMemberLineIdxOfferId,RetailGroupMemberLine,RecIdNot unique.
LinePricingRuleIdxNot unique.
RulePerfIdx1Partition,DataAreaId,OfferId,InstanceRelationType,LinePricingRuleNot unique.
RulePerfIdx2Partition,DataAreaId,OfferId,LinePricingRule,UnitOfMeasureNot unique.
Relations (8)
Each relation joins RetailPeriodicDiscountLine to another table on the fields shown.
OfferId→RetailPeriodicDiscountJoin on
OfferId = RetailPeriodicDiscount.OfferIdMany RetailPeriodicDiscountLine records → exactly one RetailPeriodicDiscount record
RetailGroupMemberLine→RetailGroupMemberLineJoin on
RetailGroupMemberLine = RetailGroupMemberLine.RecIdZero or one RetailPeriodicDiscountLine record → exactly one RetailGroupMemberLine record
UnitOfMeasure→UnitOfMeasureJoin on
UnitOfMeasure = UnitOfMeasure.RecIdMany RetailPeriodicDiscountLine records → zero or one UnitOfMeasure record
RetailDiscountApplicabilityRule→RetailDiscountApplicabilityRuleJoin on
RecId = RetailDiscountApplicabilityRule.RetailPeriodicDiscountLineZero or one RetailPeriodicDiscountLine record → exactly one RetailDiscountApplicabilityRule record
PricingRuleApplicability→PricingRuleApplicabilityJoin on
ApplicabilityId = PricingRuleApplicability.RecIdExactly one RetailPeriodicDiscountLine record → exactly one PricingRuleApplicability record
GUPPricingRuleLine→GUPPricingRuleJoin on
LinePricingRule = GUPPricingRule.RecIdZero or one RetailPeriodicDiscountLine record → exactly one GUPPricingRule record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany RetailPeriodicDiscountLine records → zero or one InventDim record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdMany RetailPeriodicDiscountLine records → exactly one GUPPriceComponentCodePriceAttributeGroupCombination record
Get this data out
Tables are not exposed directly. These public entities read from RetailPeriodicDiscountLine; use one of them in Power BI, Power Platform or a data management project.
GUPMarginComponentPriceAdjustmentLineV2Entity· 9 fields from this tableGUPRetailDiscountLineV2Entity· 13 fields from this tableGUPMarginComponentPriceAdjustmentLineEntity· 10 fields from this tableGUPRetailDiscountLineEntity· 14 fields from this tableRetailDiscountLineEntity· 9 fields from this tableRetailDiscountLineV2Entity· 7 fields from this tableGUPDiscountClaimDistributionDiscountLineEntity· 2 fields from this table
Need help with RetailPeriodicDiscountLine in a report, an integration or a migration? Talk to Dr Dynamics.