Table

RetailPeriodicDiscount

Periodic discount

Header record of a periodic retail discount. The key is the discount ID. It holds the discount type, status, validity dates, currency and pricing priority. It links to the discount code, validation period and ledger dimensions. It also holds price component, maximum limit and claim settings.

Table name
RetailPeriodicDiscount
Module
Commerce merchandising
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
OfferIdx
Key fields
OfferId
Model
Foundation

Fields (44)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
OfferIdIdentifier of the discount.String (20)
RetailOfferIdEx3
YesGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 9 more
ClaimableShows whether the discount can be claimed.Enum
GUPDiscountClaimable
NoYes (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntity
ConcurrencyModeRule for how this discount works together with other discounts, such as exclusive, best price or compounded.Enum
RetailDiscountConcurrency (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 2 more
CurrencyCodeCurrency of the discount. Points to a currency record.String (3)
CurrencyCode
YesCurrency.CurrencyCodeGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateValidationTypeWhether date validation is standard or advanced.Enum
RetailDateValidationTypeBase (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
DescriptionFree-text description of the discount.String (-1)
RetailMemo
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
DisabledSinceDate from which the discount has been disabled.Date
RetailDiscountDisabledSinceDate
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity
DisclaimerFree-text disclaimer for the discount.String (-1)
RetailMemo
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
DiscountClaimPostingOffsetName of the claim posting profile used for the offset. Points to a claim posting profile record.String (60)
Name
NoGUPDiscountVendorClaimPostingProfile.NameGUPRetailDiscountV2EntityGUPRetailDiscountEntity
DiscountCodeSystem record ID of the discount code that is linked.Int64
RefRecId
NoRetailDiscountCode.RecIdGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 1 more
DiscountLedgerDimensionLedger dimension combination used as the discount account.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdRetailDiscountEntityRetailShippingThresholdDiscountsEntity
DiscountPercentValuePercentage taken off the price.Real
RetailDiscountPercentValue
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 2 more
DiscountVendorClaimGroupNameName of the claim group for the discount. Points to a discount claim group record.String (60)
GUPDiscountVendorClaimGroupName
NoGUPDiscountVendorClaimGroup.NameGUPRetailDiscountV2EntityGUPRetailDiscountEntity
HeaderPricingGroupCodeWhether the header applies to a group or to all.Enum
GUPPricingAttributeGroupCodeHeader
GUPGroupAll (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more
HeaderPricingRuleSystem record ID of the price rule used at header level.Int64
GUPRefRecId
NoGUPPricingRule.RecIdGUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more
IncludeGenericCurrencyFlag that allows the attribute-based price components to be used with a generic currency.Enum
NoYesId
NoYes (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entity
InstanceRelationTypePurpose not clear from the metadata.low confidenceInt64
RelationType
NoNone
IsDiscountCodeRequiredShows whether a coupon code must be entered for the discount.Enum
RetailDiscountCodeRequired
NoYes (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
IsGUPDiscountFlag that marks the record as a discount of the price component feature. The exact meaning is not stated.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
MatchAllAssociatedPriceGroupsShows whether all linked price groups must match.Enum
RetailMatchAllAssociatedPriceGroups
NoYes (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity
MaxCriteriaTypeWhether the maximum is an amount or a quantity.Enum
GUPDiscountMaxCriteriaType (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntity
MaxQtyOrAmountMaximum quantity or amount for the discount. The criteria type says which.Real
GUPDiscountMaxQtyAmount
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntity
MaxUnitOfMeasureUnit used for the maximum quantity. Points to a unit record.Int64
UnitOfMeasureRecId
NoUnitOfMeasure.RecIdGUPRetailDiscountV2EntityGUPRetailDiscountEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the discount.String (60)
Name
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item.Enum
RetailDiscountOfferTypeBase (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity
PriceComponentCodeNameName of the price component code. Points to a price component code record.String (80)
GUPPriceComponentCodeName
NoGUPPriceComponentCode.NameGUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more
PriceComponentTypeType of price component the discount belongs to, such as base price, margin, discounts or rebates.Enum
GUPPriceComponent (enum)
NoNone
PriceDiscGroupSystem record ID of a related price or discount group. The target table is not stated.low confidenceInt64
RefRecId
NoNone
PricingPriorityNumberPricing priority number of the discount. Points to a pricing priority record.Integer
RetailPricingPriorityNumber
NoRetailPricingPriorityTable.PriorityNumberGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity
PrintDescriptionOnFiscalReceiptText that can be printed on the fiscal receipt for this discount.String (50)
RetailPrintDescriptionOnFiscalReceipt
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
ProcessingStatusPublishing state of the discount: draft, publishing, published or error.Enum
RetailPricingDiscountProcessingStatus (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailDiscountEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ShouldUseIntervalShows whether an interval is used in the calculation.Enum
GUPShouldUseIntervalCalculation
NoYes (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntity
StatusShows whether the discount is enabled or disabled.Enum
RetailDisabledEnabled (enum)
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
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
ValidationPeriodIdDiscount validation period that sets when the discount is valid.String
RetailDiscountValidationPeriodId
NoRetailDiscountValidationPeriod.periodIdGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
ValidationStatusResult of validation: not run, validated, failed or validating.Enum
RetailPricingValidationStatus (enum)
NoNone
ValidFromFirst date on which the discount is valid.Date
ValidFromDate
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more
ValidToLast date on which the discount is valid.Date
ValidToDate
NoGUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more

Indexes (5)

Relations (10)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many RetailPeriodicDiscount records → exactly one Currency record

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on DiscountLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailPeriodicDiscount records → zero or one DimensionAttributeValueCombination record

  • DiscountCode → RetailDiscountCode

    Join on DiscountCode = RetailDiscountCode.RecId

    Zero or one RetailPeriodicDiscount record → zero or one RetailDiscountCode record

  • RetailDiscountValidationPeriod → RetailDiscountValidationPeriod

    Join on ValidationPeriodId = RetailDiscountValidationPeriod.periodId

    Many RetailPeriodicDiscount records → zero or one RetailDiscountValidationPeriod record

  • RetailPricingPriorityTable → RetailPricingPriorityTable

    Join on PricingPriorityNumber = RetailPricingPriorityTable.PriorityNumber

    Many RetailPeriodicDiscount records → zero or one RetailPricingPriorityTable record

  • GUPPricingRuleHeader → GUPPricingRule

    Join on HeaderPricingRule = GUPPricingRule.RecId

    Zero or one RetailPeriodicDiscount record → exactly one GUPPricingRule record

  • GUPPriceComponentCode → GUPPriceComponentCode

    Join on PriceComponentCodeName = GUPPriceComponentCode.Name

    Many RetailPeriodicDiscount records → exactly one GUPPriceComponentCode record

  • GUPDiscountVendorClaimGroup → GUPDiscountVendorClaimGroup

    Join on DiscountVendorClaimGroupName = GUPDiscountVendorClaimGroup.Name

    Many RetailPeriodicDiscount records → exactly one GUPDiscountVendorClaimGroup record

  • GUPDiscountMaxQuantityUnitOfMeasure → UnitOfMeasure

    Join on MaxUnitOfMeasure = UnitOfMeasure.RecId

    Many RetailPeriodicDiscount records → zero or one UnitOfMeasure record

  • GUPDiscountVendorClaimPostingProfile → GUPDiscountVendorClaimPostingProfile

    Join on DiscountClaimPostingOffset = GUPDiscountVendorClaimPostingProfile.Name, GUPDiscountVendorClaimPostingProfile.ProfileType = GUPDiscountClaimPostingProfileType::ClaimOffset

    Zero or one RetailPeriodicDiscount record → zero or one GUPDiscountVendorClaimPostingProfile record

Get this data out

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

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

Email sales@drdynamics.co.uk