Table
RetailCampaignDiscountMedia
Media types for discount offers of campaign
Records the media types used for a discount offer within a campaign. Each row is identified by the campaign discount and the media type. It can also point to a discount code.
- Table name
RetailCampaignDiscountMedia- Module
Commerce merchandising- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
RetailCampaignDiscountMediaIdx- Key fields
CampaignDiscount, Media- Model
Foundation
Fields (8)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CampaignDiscountPoints to the campaign discount record this row belongs to. | Int64RefRecId | Yes | RetailCampaignDiscount.RecId | None |
MediaPoints to the campaign media type. | Int64RetailCampaignDiscountMediaTypeId | Yes | smmCampaignMediaType.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountCodePoints to the discount code used for this media type. | Int64RefRecId | No | RetailDiscountCode.RecId | None |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
RetailCampaignDiscountMediaIdxReplacement keyUnique, alternate key.
Relations (3)
Each relation joins RetailCampaignDiscountMedia to another table on the fields shown.
RetailCampaignDiscount→RetailCampaignDiscountJoin on
CampaignDiscount = RetailCampaignDiscount.RecIdMany RetailCampaignDiscountMedia records → exactly one RetailCampaignDiscount record
RetailDiscountCode→RetailDiscountCodeJoin on
DiscountCode = RetailDiscountCode.RecIdMany RetailCampaignDiscountMedia records → zero or one RetailDiscountCode record
smmCampaignMediaType→smmCampaignMediaTypeJoin on
Media = smmCampaignMediaType.RecIdMany RetailCampaignDiscountMedia records → exactly one smmCampaignMediaType record
Get this data out
No public entity reads from RetailCampaignDiscountMedia. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailCampaignDiscountMedia in a report, an integration or a migration? Talk to Dr Dynamics.