Table

RetailPeriodicDiscountProductLookup

Lookup table for RetailPeriodicDiscount by product

Flat lookup table that lists periodic discount lines by product. Each row combines a product with the discount offer, its validity dates, currency and the line settings. Settings cover mix and match, simple and threshold discounts. It has no defined key and mirrors the category lookup.

Table name
RetailPeriodicDiscountProductLookup
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CurrencyCodeCurrency code for the discount.String (3)
CurrencyCode
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountPercentOrValuePercentage off for the discount line.Real
RetailDiscountPercentValue
NoNone
IsDiscountApplyingLineYes or no flag showing whether this line is one that the discount is applied to.Enum
RetailIsDiscountApplyingLine
NoYes (enum)
NoNone
LineNumNumber of the line within the discount offer.Real
LineNum
NoNone
LineTypeShows whether the line includes or excludes the product.Enum
RetailDiscountLineType
RetailDiscountLineIncludeExcludeTypeBase (enum)
NoNone
MixAndMatchDiscountTypeHow a mix and match discount is expressed: deal price, percentage off or amount off.Enum
RetailDealPriceDiscountPct
RetailDealPriceDiscountPctBase (enum)
NoNone
MixAndMatchLineGroupName of the line group used by mix and match discounts.String
RetailMixAndMatchLineGroup
NoNone
MixAndMatchNumberOfItemsNeededNumber of products needed for a mix and match discount line.Integer
RetailNumberOfItemsNeeded
NoNone
OfferIdIdentifier of the discount offer.String (20)
RetailOfferIdEx3
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodicDiscountTypeKind of discount offer, such as quantity, mix and match, simple or threshold discount.Enum
RetailDiscountOfferTypeBase (enum)
NoNone
ProductSystem record ID of the product the discount line applies to.Int64
EcoResProductRecId
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
RetailPeriodicDiscountLineRecordIdSystem record ID of the periodic discount line this row comes from.Int64
RecId
NoNone
SimpleDiscountAmountCash amount taken off by a simple discount.Real
DiscAmount
NoNone
SimpleDiscountMethodHow a simple discount is expressed: percentage off, amount off or unit price.Enum
RetailDiscountOfferLineDiscountMethod
RetailDiscountOfferLineDiscMethodBase (enum)
NoNone
SimpleDiscountOfferPriceUnit price offered by a simple discount.Real
RetailOfferPrice
NoNone
SimpleDiscountPctPercentage taken off by a simple discount.Real
DiscPct
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
ThresholdLineDiscountMethodHow a threshold discount line is expressed: percentage off, amount off or unit price.Enum
RetailDiscountThresholdLineDiscountMethod
RetailDiscountThresholdLineDiscountMethodBase (enum)
NoNone
ThresholdQuantityLimitQuantity limit for a threshold discount line.Real
RetailDiscountThresholdLineQuantityLimit
NoNone
ThresholdTierTier number for a threshold discount. The meaning is not stated in the metadata.low confidenceInt64NoNone
UnitOfMeasureSystem record ID of the unit of measure for the line.Int64
UnitOfMeasureRecId
NoNone
ValidFromFirst date on which the discount is valid.Date
ValidFromDate
NoNone
ValidToLast date on which the discount is valid.Date
ValidToDate
NoNone

Indexes (3)

Get this data out

No public entity reads from RetailPeriodicDiscountProductLookup. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk