Table
MCRCouponSalesTable
Coupons
Links coupons to sales orders. The key is the coupon ID plus the sales order. It also stores the customer account and flags for liability and reissue.
- Table name
MCRCouponSalesTable- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
MCRCoupon- Primary index
MCRCouponSalesIdx- Replacement key
MCRCouponSalesIdx- Key fields
MCRCouponId, SalesId- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
MCRCouponIdCoupon used on the sales order. | String (20)MCRCouponId | Yes | MCRCoupon.MCRCouponId | MCRCouponSalesOrderEntity |
SalesIdSales order the coupon is used on. | String (20)SalesIdBase | Yes | SalesTable.SalesId | MCRCouponSalesOrderEntity |
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 | |
CustAccountCustomer account linked to the coupon on the order. | String (20)CustAccount | No | CustTable.AccountNum | MCRCouponSalesOrderEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MCRLiabilityDeductedYes/No flag for liability on the coupon.low confidence | EnumMCRLiabilityDeductedNoYes (enum) | No | MCRCouponSalesOrderEntity | |
MCRReissueYes/No flag for reissuing the coupon. | EnumMCRReissueNoYes (enum) | No | MCRCouponSalesOrderEntity | |
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 (2)
MCRCouponSalesIdxPrimary indexReplacement keyUnique, alternate key.
SalesIdIdxNot unique.
Relations (3)
Each relation joins MCRCouponSalesTable to another table on the fields shown.
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany MCRCouponSalesTable records → exactly one CustTable record
MCRCoupon→MCRCouponJoin on
MCRCouponId = MCRCoupon.MCRCouponIdOne or more MCRCouponSalesTable records → exactly one MCRCoupon record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdOne or more MCRCouponSalesTable records → exactly one SalesTable record
Get this data out
Tables are not exposed directly. These public entities read from MCRCouponSalesTable; use one of them in Power BI, Power Platform or a data management project.
MCRCouponSalesOrderEntity· 5 fields from this table
Need help with MCRCouponSalesTable in a report, an integration or a migration? Talk to Dr Dynamics.