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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ApplyWithoutCouponCodeYes or no flag showing whether the coupon can be applied without entering a code.Enum
RetailCouponApplyCouponWithoutCode
NoYes (enum)
NoRetailCouponEntity
CouponNumberNumber that identifies the coupon.String (60)
RetailCouponNumber
YesRetailCouponEntityRetailCouponCodeEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort description of the coupon.String (60)
RetailDescriptionEx2
NoRetailCouponEntity
DiscountOfferIdPoints to the periodic discount linked to the coupon.String (20)
RetailOfferIdEx3
NoRetailPeriodicDiscount.OfferIdRetailCouponEntity
IsCustomerRequiredYes or no flag showing whether a customer must be given for the coupon.Enum
RetailCouponIsCustomerRequired
NoYes (enum)
NoRetailCouponEntity
IsExclusiveYes or no flag showing whether the coupon is exclusive.Enum
RetailCouponIsExclusive
NoYes (enum)
NoRetailCouponEntity
IsGUPCouponYes or no flag. Purpose not clear from the metadata.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ParentCouponNumberNumber of the parent coupon, if this coupon belongs to another one.String (20)
RetailParentCouponNumber
NoRetailCouponEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
StatusStatus of the coupon, such as inactive or active. Two values are marked deprecated.Enum
RetailCouponStatus (enum)
NoRetailCouponEntity
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
UsageLimitNumber that limits how often the coupon can be used.Integer
RetailUsageLimit
NoRetailCouponEntity
UsageLimitTypeScope of the usage limit: by company, channel or customer.Enum
RetailCouponUsageLimitType (enum)
NoRetailCouponEntity
ValidFromFirst date on which the coupon is valid.Date
FromDate
NoRetailCouponEntity
ValidToLast date on which the coupon is valid.Date
ToDate
NoRetailCouponEntity

Indexes (1)

Relations (1)

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

  • RetailPeriodicDiscountRelationship → RetailPeriodicDiscount

    Join on DiscountOfferId = RetailPeriodicDiscount.OfferId, RetailPeriodicDiscount.IsDiscountCodeRequired = 1

    Cardinality 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.

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

Email sales@drdynamics.co.uk