Table

WHSReturnDetail

Return detail

Holds one record per return, identified by Return ID. It stores the RMA number, the container, the related sales order or shipment, and the customer account. It also holds the ship and print times, the return address, and the carrier, carrier service and return tracking number.

Table name
WHSReturnDetail
Module
Warehouse
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
WHSReturnIDIdx
Replacement key
WHSReturnIDIdx
Key fields
ReturnID
Model
Foundation

Fields (25)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ReturnIDUnique identifier of the return record.String (20)
WHSReturnID
YesWHSReturnDetailEntity
AccountNameName of the account for the return.String (60)
AccountName
NoWHSReturnDetailEntity
AccountNumCustomer account for the return. Points to a customer.String (20)
CustVendAC
NoCustTable.AccountNumWHSReturnDetailEntity
CarrierCodeShipping carrier used for the return. Points to a carrier record.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeWHSReturnDetailEntity
CarrierServiceCodeService of the carrier used for the return. Points to a carrier service, together with the carrier code.String (20)
TMSCarrierServiceCode
NoTMSCarrierService.CarrierServiceCodeWHSReturnDetailEntity
ContainerIdContainer the return relates to. Points to a record in the containers table.String (25)
WHSContainerId
NoWHSContainerTable.ContainerIdWHSReturnDetailEntity
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
OrderNumberSales order number the return relates to. Points to a sales order.String (20)
WHSOrderNum
NoSalesTable.SalesIdWHSReturnDetailEntity
OrderTypeKind of order the return comes from: unsupported, sales order or outbound shipment order.Enum
WHSReturnDetailOrderType (enum)
NoWHSReturnDetailEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrintedUTCDateTimeDate and time, in UTC, when the return details were printed.UtcDateTime
WHSReturnDetailPrintedUTCDateTime
NoWHSReturnDetailEntity
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
ReturnAddressFull address where the return is sent.String (250)
WHSReturnAddress
NoWHSReturnDetailEntity
ReturnAddressNameName linked to the address where the return is sent.String (100)
WHSReturnAddressName
NoWHSReturnDetailEntity
ReturnItemNumRMA number (return merchandise authorisation) linked to the return.String
ReturnItemNum
NoNone
ReturnShipCarrierTrackingNumCarrier tracking number for the return shipment.String (30)
TMSReturnShipCarrierTrackingNum
NoWHSReturnDetailEntity
ShipmentIdShipment the return relates to. Points to a shipment record.String (20)
WHSShipmentId
NoWHSShipmentTable.ShipmentIdWHSReturnDetailEntity
ShipUTCDateTimeDate and time, in UTC, when the goods were shipped.UtcDateTime
WHSReturnDetailShipUTCDateTime
NoWHSReturnDetailEntity
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 (6)

Relations (6)

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

  • WHSContainerTable → WHSContainerTable

    Join on ContainerId = WHSContainerTable.ContainerId

    Many WHSReturnDetail records → zero or one WHSContainerTable record

  • SalesTable → SalesTable

    Join on OrderType = WHSReturnDetailOrderType::SalesOrder, OrderNumber = SalesTable.SalesId

    Many WHSReturnDetail records → zero or one SalesTable record

  • WHSShipmentTable → WHSShipmentTable

    Join on ShipmentId = WHSShipmentTable.ShipmentId

    Many WHSReturnDetail records → zero or one WHSShipmentTable record

  • CustTable → CustTable

    Join on OrderType = WHSReturnDetailOrderType::SalesOrder, AccountNum = CustTable.AccountNum

    Many WHSReturnDetail records → zero or one CustTable record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many WHSReturnDetail records → zero or one TMSCarrier record

  • TMSCarrierService → TMSCarrierService

    Join on CarrierCode = TMSCarrierService.CarrierCode, CarrierServiceCode = TMSCarrierService.CarrierServiceCode

    Many WHSReturnDetail records → zero or one TMSCarrierService record

Get this data out

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

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

Email sales@drdynamics.co.uk