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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CurrencyCodeCurrency code for the discount. | String (3)CurrencyCode | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountPercentOrValuePercentage off for the discount line. | RealRetailDiscountPercentValue | No | None | |
IsDiscountApplyingLineYes or no flag showing whether this line is one that the discount is applied to. | EnumRetailIsDiscountApplyingLineNoYes (enum) | No | None | |
LineNumNumber of the line within the discount offer. | RealLineNum | No | None | |
LineTypeShows whether the line includes or excludes the product. | EnumRetailDiscountLineTypeRetailDiscountLineIncludeExcludeTypeBase (enum) | No | None | |
MixAndMatchDiscountTypeHow a mix and match discount is expressed: deal price, percentage off or amount off. | EnumRetailDealPriceDiscountPctRetailDealPriceDiscountPctBase (enum) | No | None | |
MixAndMatchLineGroupName of the line group used by mix and match discounts. | StringRetailMixAndMatchLineGroup | No | None | |
MixAndMatchNumberOfItemsNeededNumber of products needed for a mix and match discount line. | IntegerRetailNumberOfItemsNeeded | No | None | |
OfferIdIdentifier of the discount offer. | String (20)RetailOfferIdEx3 | Yes | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodicDiscountTypeKind of discount offer, such as quantity, mix and match, simple or threshold discount. | EnumRetailDiscountOfferTypeBase (enum) | No | None | |
ProductSystem record ID of the product the discount line applies to. | Int64EcoResProductRecId | 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 | |
RetailPeriodicDiscountLineRecordIdSystem record ID of the periodic discount line this row comes from. | Int64RecId | No | None | |
SimpleDiscountAmountCash amount taken off by a simple discount. | RealDiscAmount | No | None | |
SimpleDiscountMethodHow a simple discount is expressed: percentage off, amount off or unit price. | EnumRetailDiscountOfferLineDiscountMethodRetailDiscountOfferLineDiscMethodBase (enum) | No | None | |
SimpleDiscountOfferPriceUnit price offered by a simple discount. | RealRetailOfferPrice | No | None | |
SimpleDiscountPctPercentage taken off by a simple discount. | RealDiscPct | 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 | |
ThresholdLineDiscountMethodHow a threshold discount line is expressed: percentage off, amount off or unit price. | EnumRetailDiscountThresholdLineDiscountMethodRetailDiscountThresholdLineDiscountMethodBase (enum) | No | None | |
ThresholdQuantityLimitQuantity limit for a threshold discount line. | RealRetailDiscountThresholdLineQuantityLimit | No | None | |
ThresholdTierTier number for a threshold discount. The meaning is not stated in the metadata.low confidence | Int64 | No | None | |
UnitOfMeasureSystem record ID of the unit of measure for the line. | Int64UnitOfMeasureRecId | No | None | |
ValidFromFirst date on which the discount is valid. | DateValidFromDate | No | None | |
ValidToLast date on which the discount is valid. | DateValidToDate | No | None |
Indexes (3)
RetailPeriodicDiscountProductLookup_Product_CurrencyCodeNot unique.
RetailPeriodicDiscountProductLookup_Product_PeriodicDiscountTypeNot unique.
RetailPeriodicDiscountProductLookup_OfferIdNot unique.
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.