Table
MCRRFMHistory
RFM history
Transaction history used for RFM analysis. Each record is keyed by sales order, customer account and date. It holds the amounts, charges and sales tax for the order.
- Table name
MCRRFMHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
MCRCallCenter- Primary index
RecId- Replacement key
RFMHistoryIdx- Key fields
SalesId, CustAccount, TransDate- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesIdSales order the record refers to. | String (20)SalesId | No | SalesTable.SalesId | None |
CustAccountCustomer account that placed the order. | String (20)CustAccount | No | CustTable.AccountNum | None |
TransDateDate of the transaction. | DateTransDate | No | None | |
CostAmountAmount in the accounting currency. | RealAmountMST | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MarkupValueValue of charges on the order; currency not stated in the metadata. | RealMarkupValue | 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 | |
SaleAmountSales amount in the transaction currency. | RealAmountCur | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountSales tax amount; currency not stated in the metadata. | RealTaxAmount | No | None |
Indexes (2)
CustAccountIdxNot unique.
RFMHistoryIdxReplacement keySalesId,CustAccount,TransDateUnique, alternate key.
Relations (2)
Each relation joins MCRRFMHistory to another table on the fields shown.
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany MCRRFMHistory records → exactly one CustTable record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany MCRRFMHistory records → exactly one SalesTable record
Get this data out
No public entity reads from MCRRFMHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with MCRRFMHistory in a report, an integration or a migration? Talk to Dr Dynamics.