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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
OfferIdIdentifier of the discount. | String (20)RetailOfferIdEx3 | Yes | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 9 more | |
ClaimableShows whether the discount can be claimed. | EnumGUPDiscountClaimableNoYes (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntity | |
ConcurrencyModeRule for how this discount works together with other discounts, such as exclusive, best price or compounded. | EnumRetailDiscountConcurrency (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 2 more | |
CurrencyCodeCurrency of the discount. Points to a currency record. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateValidationTypeWhether date validation is standard or advanced. | EnumRetailDateValidationTypeBase (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
DescriptionFree-text description of the discount. | String (-1)RetailMemo | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
DisabledSinceDate from which the discount has been disabled. | DateRetailDiscountDisabledSinceDate | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity | |
DisclaimerFree-text disclaimer for the discount. | String (-1)RetailMemo | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
DiscountClaimPostingOffsetName of the claim posting profile used for the offset. Points to a claim posting profile record. | String (60)Name | No | GUPDiscountVendorClaimPostingProfile.Name | GUPRetailDiscountV2EntityGUPRetailDiscountEntity |
DiscountCodeSystem record ID of the discount code that is linked. | Int64RefRecId | No | RetailDiscountCode.RecId | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 1 more |
DiscountLedgerDimensionLedger dimension combination used as the discount account. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | RetailDiscountEntityRetailShippingThresholdDiscountsEntity |
DiscountPercentValuePercentage taken off the price. | RealRetailDiscountPercentValue | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 2 more | |
DiscountVendorClaimGroupNameName of the claim group for the discount. Points to a discount claim group record. | String (60)GUPDiscountVendorClaimGroupName | No | GUPDiscountVendorClaimGroup.Name | GUPRetailDiscountV2EntityGUPRetailDiscountEntity |
HeaderPricingGroupCodeWhether the header applies to a group or to all. | EnumGUPPricingAttributeGroupCodeHeaderGUPGroupAll (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more | |
HeaderPricingRuleSystem record ID of the price rule used at header level. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more |
IncludeGenericCurrencyFlag that allows the attribute-based price components to be used with a generic currency. | EnumNoYesIdNoYes (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entity | |
InstanceRelationTypePurpose not clear from the metadata.low confidence | Int64RelationType | No | None | |
IsDiscountCodeRequiredShows whether a coupon code must be entered for the discount. | EnumRetailDiscountCodeRequiredNoYes (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
IsGUPDiscountFlag that marks the record as a discount of the price component feature. The exact meaning is not stated.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
MatchAllAssociatedPriceGroupsShows whether all linked price groups must match. | EnumRetailMatchAllAssociatedPriceGroupsNoYes (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity | |
MaxCriteriaTypeWhether the maximum is an amount or a quantity. | EnumGUPDiscountMaxCriteriaType (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntity | |
MaxQtyOrAmountMaximum quantity or amount for the discount. The criteria type says which. | RealGUPDiscountMaxQtyAmount | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntity | |
MaxUnitOfMeasureUnit used for the maximum quantity. Points to a unit record. | Int64UnitOfMeasureRecId | No | UnitOfMeasure.RecId | GUPRetailDiscountV2EntityGUPRetailDiscountEntity |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the discount. | String (60)Name | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountTypeKind of discount, such as quantity, mix and match, simple, threshold or free item. | EnumRetailDiscountOfferTypeBase (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity | |
PriceComponentCodeNameName of the price component code. Points to a price component code record. | String (80)GUPPriceComponentCodeName | No | GUPPriceComponentCode.Name | GUPRetailDiscountV2EntityGUPRetailDiscountEntityGUPMarginComponentPriceAdjustmentV2Entityand 1 more |
PriceComponentTypeType of price component the discount belongs to, such as base price, margin, discounts or rebates. | EnumGUPPriceComponent (enum) | No | None | |
PriceDiscGroupSystem record ID of a related price or discount group. The target table is not stated.low confidence | Int64RefRecId | No | None | |
PricingPriorityNumberPricing priority number of the discount. Points to a pricing priority record. | IntegerRetailPricingPriorityNumber | No | RetailPricingPriorityTable.PriorityNumber | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity |
PrintDescriptionOnFiscalReceiptText that can be printed on the fiscal receipt for this discount. | String (50)RetailPrintDescriptionOnFiscalReceipt | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
ProcessingStatusPublishing state of the discount: draft, publishing, published or error. | EnumRetailPricingDiscountProcessingStatus (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailDiscountEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ShouldUseIntervalShows whether an interval is used in the calculation. | EnumGUPShouldUseIntervalCalculationNoYes (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntity | |
StatusShows whether the discount is enabled or disabled. | EnumRetailDisabledEnabled (enum) | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
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 | |
ValidationPeriodIdDiscount validation period that sets when the discount is valid. | StringRetailDiscountValidationPeriodId | No | RetailDiscountValidationPeriod.periodId | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more |
ValidationStatusResult of validation: not run, validated, failed or validating. | EnumRetailPricingValidationStatus (enum) | No | None | |
ValidFromFirst date on which the discount is valid. | DateValidFromDate | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more | |
ValidToLast date on which the discount is valid. | DateValidToDate | No | GUPRetailDiscountV2EntityGUPRetailDiscountEntityRetailDiscountEntityand 3 more |
Indexes (5)
OfferIdxReplacement keyUnique, alternate key.
CurrencyIdxNot unique.
DiscountTypeIdxPeriodicDiscountType,Status,ValidFrom,ValidToNot unique.
HeaderPricingRuleIdxHeaderPricingRule,IsGUPDiscount,PriceComponentType,Status,OfferIdNot unique.
RulePerfIdx1Partition,DataAreaId,OfferId,IsGUPDiscount,PriceComponentType,Status,ValidFrom,PeriodicDiscountType,ValidTo,HeaderPricingRuleNot unique.
Relations (10)
Each relation joins RetailPeriodicDiscount to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany RetailPeriodicDiscount records → exactly one Currency record
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
DiscountLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailPeriodicDiscount records → zero or one DimensionAttributeValueCombination record
DiscountCode→RetailDiscountCodeJoin on
DiscountCode = RetailDiscountCode.RecIdZero or one RetailPeriodicDiscount record → zero or one RetailDiscountCode record
RetailDiscountValidationPeriod→RetailDiscountValidationPeriodJoin on
ValidationPeriodId = RetailDiscountValidationPeriod.periodIdMany RetailPeriodicDiscount records → zero or one RetailDiscountValidationPeriod record
RetailPricingPriorityTable→RetailPricingPriorityTableJoin on
PricingPriorityNumber = RetailPricingPriorityTable.PriorityNumberMany RetailPeriodicDiscount records → zero or one RetailPricingPriorityTable record
GUPPricingRuleHeader→GUPPricingRuleJoin on
HeaderPricingRule = GUPPricingRule.RecIdZero or one RetailPeriodicDiscount record → exactly one GUPPricingRule record
GUPPriceComponentCode→GUPPriceComponentCodeJoin on
PriceComponentCodeName = GUPPriceComponentCode.NameMany RetailPeriodicDiscount records → exactly one GUPPriceComponentCode record
GUPDiscountVendorClaimGroup→GUPDiscountVendorClaimGroupJoin on
DiscountVendorClaimGroupName = GUPDiscountVendorClaimGroup.NameMany RetailPeriodicDiscount records → exactly one GUPDiscountVendorClaimGroup record
GUPDiscountMaxQuantityUnitOfMeasure→UnitOfMeasureJoin on
MaxUnitOfMeasure = UnitOfMeasure.RecIdMany RetailPeriodicDiscount records → zero or one UnitOfMeasure record
GUPDiscountVendorClaimPostingProfile→GUPDiscountVendorClaimPostingProfileJoin on
DiscountClaimPostingOffset = GUPDiscountVendorClaimPostingProfile.Name,GUPDiscountVendorClaimPostingProfile.ProfileType = GUPDiscountClaimPostingProfileType::ClaimOffsetZero 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.
GUPRetailDiscountV2Entity· 31 fields from this tableGUPRetailDiscountEntity· 31 fields from this tableRetailDiscountEntity· 22 fields from this tableGUPMarginComponentPriceAdjustmentLineV2Entity· 1 field from this tableGUPMarginComponentPriceAdjustmentV2Entity· 18 fields from this tableGUPRetailDiscountLineV2Entity· 1 field from this tableGUPMarginComponentPriceAdjustmentEntity· 17 fields from this tableGUPMarginComponentPriceAdjustmentLineEntity· 1 field from this tableGUPMarginComponentPriceAdjustmentTierLineEntity· 1 field from this tableGUPRetailDiscountLineEntity· 1 field from this tableGUPRetailMultibuyDiscountLineEntity· 1 field from this tableRetailShippingThresholdDiscountsEntity· 14 fields from this table
Need help with RetailPeriodicDiscount in a report, an integration or a migration? Talk to Dr Dynamics.