Table

MCRReturnSalesTable

Return orders

Holds extra return order details for a sales order, one record per sales order reference. It shows whether the return is an exchange and whether credit is advanced or applied. It also points to the original sales order.

Table name
MCRReturnSalesTable
Module
Commerce transactions and orders
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
SalesTableIdx
Key fields
SalesTable
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableSales order record this return detail belongs to.Int64
MCRSalesTableRefRecId
YesSalesTable.RecIdMCRReturnSalesTableBiEntity
AdvanceCreditYes/No flag for advance credit on the return.Enum
MCRAdvanceCredit
NoYes (enum)
NoMCRReturnSalesTableBiEntity
AdvanceExchangeAdvance exchange status: blank, hold for receipt or release exchange.Enum
MCRAdvanceExchange (enum)
NoMCRReturnSalesTableBiEntity
ApplyCreditToExchangeYes/No flag for applying credit to the exchange.Enum
MCRApplyCreditToExchange
NoYes (enum)
NoMCRReturnSalesTableBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoMCRReturnSalesTableBiEntity
IsExchangeYes/No flag showing whether the return is an exchange.Enum
NoYes (enum)
NoMCRReturnSalesTableBiEntity
OriginalSalesIdSales order that the return is made against.String (20)
MCROriginalSalesId
NoSalesTable.SalesIdMCRReturnSalesTableBiEntity
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
NoMCRReturnSalesTableBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoMCRReturnSalesTableBiEntity
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)

  • SalesTableIdxReplacement key

    SalesTable

    Unique, alternate key.

Relations (2)

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

  • OriginalSalesId → SalesTable

    Join on OriginalSalesId = SalesTable.SalesId

    Many MCRReturnSalesTable records → exactly one SalesTable record

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one MCRReturnSalesTable record → exactly one SalesTable record

Get this data out

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

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

Email sales@drdynamics.co.uk