Table

MCRCouponCustomer

Customer reference

Links a coupon to the customers it applies to. A row refers to a single customer or a customer group, or to all customers, and can be marked as void. It links to the coupon, customer and customer group tables.

Table name
MCRCouponCustomer
Module
Commerce merchandising
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
MCRCoupon
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
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
CustomerCodeWhether the row targets one customer, a customer group or all customers.Enum
TableGroupAll (enum)
NoMCRCouponCustomerEntity
CustVendRelThe customer account or customer group, depending on the customer code.String (20)
CustVendRel
NoCustGroup.CustGroupCustTable.AccountNumMCRCouponCustomerEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MCRCouponIdThe coupon that the row belongs to.String (20)
MCRCouponId
YesMCRCoupon.MCRCouponIdMCRCouponCustomerEntity
MCRCouponVoidedYes or No flag showing whether the row is void.Enum
MCRCouponVoided
NoYes (enum)
NoMCRCouponCustomerEntity
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
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
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

Indexes (1)

Relations (3)

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

  • CustGroup → CustGroup

    Join on CustVendRel = CustGroup.CustGroup, CustomerCode = TableGroupAll::GroupId

    Many MCRCouponCustomer records → exactly one CustGroup record

  • CustTable → CustTable

    Join on CustVendRel = CustTable.AccountNum, CustomerCode = TableGroupAll::Table

    Many MCRCouponCustomer records → exactly one CustTable record

  • MCRCoupon → MCRCoupon

    Join on MCRCouponId = MCRCoupon.MCRCouponId

    One or more MCRCouponCustomer records → exactly one MCRCoupon record

Get this data out

Tables are not exposed directly. These public entities read from MCRCouponCustomer; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk