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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ApplicabilityIdSystem record ID of the price attribute values that set when the line applies.Int64
RefRecId
NoPricingRuleApplicability.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the line.String (-1)
RetailMemo
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more
DiscountPercentOrValuePercentage taken off the price on this line.Real
RetailDiscountPercentValue
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more
InstanceRelationTypePurpose not clear from the metadata.low confidenceInt64
RelationType
NoNone
InventDimIdInventory dimension combination of the line. Points to an inventory dimension record.String (20)
InventDimId
NoInventDim.inventDimIdGUPMarginComponentPriceAdjustmentLineEntityGUPRetailDiscountLineEntity
IsDiscountApplyingLineShows whether this is a line that the discount is applied to.Enum
RetailIsDiscountApplyingLine
NoYes (enum)
NoGUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntityRetailDiscountLineEntityand 1 more
IsDiscountCodeRequiredShows whether a coupon code must be entered for the line.Enum
RetailDiscountCodeRequired
NoYes (enum)
NoNone
IsMandatoryShows whether the line is mandatory.Enum
NoYesId
NoYes (enum)
NoGUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity
IsPropertyBasedPurpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
LeastAmountSmallest line amount required, as the label says.Real
PriceDiscAmount
NoGUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity
LeastQuantitySmallest line quantity required.Real
GUPLeastQuantity
NoGUPRetailDiscountLineV2EntityGUPRetailDiscountLineEntity
LineNumNumber of the line within the discount.Real
LineNum
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 4 more
LinePricingGroupCodeWhether the line applies to a group or to all.Enum
GUPPricingAttributeGroupCodeLine
GUPGroupAll (enum)
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more
LinePricingRuleSystem record ID of the price rule used on the line.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more
LineTypeWhether the line includes or excludes the products it covers.Enum
RetailDiscountLineType
RetailDiscountLineIncludeExcludeTypeBase (enum)
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more
NameName of the line.String (60)
Name
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 3 more
OfferIdDiscount that the line belongs to. Points to the periodic discount.String (20)
RetailOfferIdEx3
YesRetailPeriodicDiscount.OfferIdRetailDiscountLineEntityRetailDiscountLineV2EntityGUPDiscountClaimDistributionDiscountLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceAttributeGroupCombinationRecIdSystem record ID of the price attribute group combination used by the line.Int64
RecId
NoGUPPriceComponentCodePriceAttributeGroupCombination.RecIdNone
PricingAttributesLineAreMatchedShows whether the pricing attributes of the line must be matched.Enum
GUPPricingAttributesAreMatched
NoYes (enum)
NoNone
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
RetailGroupMemberLineSystem record ID of the group member line that is linked.Int64
RefRecId
YesRetailGroupMemberLine.RecIdRetailDiscountLineEntity
StatusShows whether the line is enabled or disabled.Enum
RetailDisabledEnabled (enum)
NoNone
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
UnitAppliesToAllShows whether the line applies to all units.Enum
NoYesId
NoYes (enum)
NoGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 1 more
UnitOfMeasureUnit for the line. Points to a unit record.Int64
UnitOfMeasureRecId
NoUnitOfMeasure.RecIdGUPMarginComponentPriceAdjustmentLineV2EntityGUPRetailDiscountLineV2EntityGUPMarginComponentPriceAdjustmentLineEntityand 2 more

Indexes (6)

Relations (8)

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

  • OfferId → RetailPeriodicDiscount

    Join on OfferId = RetailPeriodicDiscount.OfferId

    Many RetailPeriodicDiscountLine records → exactly one RetailPeriodicDiscount record

  • RetailGroupMemberLine → RetailGroupMemberLine

    Join on RetailGroupMemberLine = RetailGroupMemberLine.RecId

    Zero or one RetailPeriodicDiscountLine record → exactly one RetailGroupMemberLine record

  • UnitOfMeasure → UnitOfMeasure

    Join on UnitOfMeasure = UnitOfMeasure.RecId

    Many RetailPeriodicDiscountLine records → zero or one UnitOfMeasure record

  • RetailDiscountApplicabilityRule → RetailDiscountApplicabilityRule

    Join on RecId = RetailDiscountApplicabilityRule.RetailPeriodicDiscountLine

    Zero or one RetailPeriodicDiscountLine record → exactly one RetailDiscountApplicabilityRule record

  • PricingRuleApplicability → PricingRuleApplicability

    Join on ApplicabilityId = PricingRuleApplicability.RecId

    Exactly one RetailPeriodicDiscountLine record → exactly one PricingRuleApplicability record

  • GUPPricingRuleLine → GUPPricingRule

    Join on LinePricingRule = GUPPricingRule.RecId

    Zero or one RetailPeriodicDiscountLine record → exactly one GUPPricingRule record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many RetailPeriodicDiscountLine records → zero or one InventDim record

  • GUPPriceComponentCodePriceAttributeGroupCombination → GUPPriceComponentCodePriceAttributeGroupCombination

    Join on PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecId

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

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

Email sales@drdynamics.co.uk