Table

RetailMediaAndProductRelation

Links a media file to a product for a given internal organisation and catalogue. It also shows whether the image is the default one. It has no defined key.

Table name
RetailMediaAndProductRelation
Module
Commerce merchandising
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CatalogIdCatalogue number the link applies to.String
RetailCatalogId
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
InternalOrganizationPoints to the internal organisation in RetailInternalOrganization.Int64
RetailInternalOrgRefRecId
YesRetailInternalOrganization.RecIdNone
IsDefaultYes or No: whether this is the default image.Enum
NoYes (enum)
NoNone
MediaResourceIdIdentifier of the media file.IntegerNoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProductPoints to the product in EcoResProduct.Int64
EcoResProductRecId
NoEcoResProduct.RecIdNone
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 (2)

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

  • Product → EcoResProduct

    Join on Product = EcoResProduct.RecId

    Many RetailMediaAndProductRelation records → exactly one EcoResProduct record

  • RetailInternalOrganization → RetailInternalOrganization

    Join on InternalOrganization = RetailInternalOrganization.RecId

    Many RetailMediaAndProductRelation records → exactly one RetailInternalOrganization record

Get this data out

No public entity reads from RetailMediaAndProductRelation. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk