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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CampaignDiscountPoints to the campaign discount record this row belongs to.Int64
RefRecId
YesRetailCampaignDiscount.RecIdNone
MediaPoints to the campaign media type.Int64
RetailCampaignDiscountMediaTypeId
YessmmCampaignMediaType.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountCodePoints to the discount code used for this media type.Int64
RefRecId
NoRetailDiscountCode.RecIdNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • RetailCampaignDiscount → RetailCampaignDiscount

    Join on CampaignDiscount = RetailCampaignDiscount.RecId

    Many RetailCampaignDiscountMedia records → exactly one RetailCampaignDiscount record

  • RetailDiscountCode → RetailDiscountCode

    Join on DiscountCode = RetailDiscountCode.RecId

    Many RetailCampaignDiscountMedia records → zero or one RetailDiscountCode record

  • smmCampaignMediaType → smmCampaignMediaType

    Join on Media = smmCampaignMediaType.RecId

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

Email sales@drdynamics.co.uk