Table
RetailCoupon
Coupons
Lists coupons with a number, description, validity dates and status. It also records usage limits, whether a customer is required and whether the coupon is exclusive. Each coupon can link to a periodic discount and to a parent coupon.
- Table name
RetailCoupon- Module
Commerce customers- 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 (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ApplyWithoutCouponCodeYes or no flag showing whether the coupon can be applied without entering a code. | EnumRetailCouponApplyCouponWithoutCodeNoYes (enum) | No | RetailCouponEntity | |
CouponNumberNumber that identifies the coupon. | String (60)RetailCouponNumber | Yes | RetailCouponEntityRetailCouponCodeEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort description of the coupon. | String (60)RetailDescriptionEx2 | No | RetailCouponEntity | |
DiscountOfferIdPoints to the periodic discount linked to the coupon. | String (20)RetailOfferIdEx3 | No | RetailPeriodicDiscount.OfferId | RetailCouponEntity |
IsCustomerRequiredYes or no flag showing whether a customer must be given for the coupon. | EnumRetailCouponIsCustomerRequiredNoYes (enum) | No | RetailCouponEntity | |
IsExclusiveYes or no flag showing whether the coupon is exclusive. | EnumRetailCouponIsExclusiveNoYes (enum) | No | RetailCouponEntity | |
IsGUPCouponYes or no flag. Purpose not clear from the metadata.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
ParentCouponNumberNumber of the parent coupon, if this coupon belongs to another one. | String (20)RetailParentCouponNumber | No | RetailCouponEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
StatusStatus of the coupon, such as inactive or active. Two values are marked deprecated. | EnumRetailCouponStatus (enum) | No | RetailCouponEntity | |
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 | |
UsageLimitNumber that limits how often the coupon can be used. | IntegerRetailUsageLimit | No | RetailCouponEntity | |
UsageLimitTypeScope of the usage limit: by company, channel or customer. | EnumRetailCouponUsageLimitType (enum) | No | RetailCouponEntity | |
ValidFromFirst date on which the coupon is valid. | DateFromDate | No | RetailCouponEntity | |
ValidToLast date on which the coupon is valid. | DateToDate | No | RetailCouponEntity |
Indexes (1)
RetailCouponIdxUnique, alternate key.
Relations (1)
Each relation joins RetailCoupon to another table on the fields shown.
RetailPeriodicDiscountRelationship→RetailPeriodicDiscountJoin on
DiscountOfferId = RetailPeriodicDiscount.OfferId,RetailPeriodicDiscount.IsDiscountCodeRequired = 1Cardinality not set in the metadata.
Get this data out
Tables are not exposed directly. These public entities read from RetailCoupon; use one of them in Power BI, Power Platform or a data management project.
RetailCouponEntity· 12 fields from this tableRetailCouponCodeEntity· 1 field from this table
Need help with RetailCoupon in a report, an integration or a migration? Talk to Dr Dynamics.