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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustomerCodeWhether the row targets one customer, a customer group or all customers. | EnumTableGroupAll (enum) | No | MCRCouponCustomerEntity | |
CustVendRelThe customer account or customer group, depending on the customer code. | String (20)CustVendRel | No | CustGroup.CustGroupCustTable.AccountNum | MCRCouponCustomerEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MCRCouponIdThe coupon that the row belongs to. | String (20)MCRCouponId | Yes | MCRCoupon.MCRCouponId | MCRCouponCustomerEntity |
MCRCouponVoidedYes or No flag showing whether the row is void. | EnumMCRCouponVoidedNoYes (enum) | No | MCRCouponCustomerEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | 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 | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
MCRCoupCustIdxCustVendRel,CustomerCode,MCRCouponIdNot unique.
Relations (3)
Each relation joins MCRCouponCustomer to another table on the fields shown.
CustGroup→CustGroupJoin on
CustVendRel = CustGroup.CustGroup,CustomerCode = TableGroupAll::GroupIdMany MCRCouponCustomer records → exactly one CustGroup record
CustTable→CustTableJoin on
CustVendRel = CustTable.AccountNum,CustomerCode = TableGroupAll::TableMany MCRCouponCustomer records → exactly one CustTable record
MCRCoupon→MCRCouponJoin on
MCRCouponId = MCRCoupon.MCRCouponIdOne 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.
MCRCouponCustomerEntity· 4 fields from this table
Need help with MCRCouponCustomer in a report, an integration or a migration? Talk to Dr Dynamics.