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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ReturnIDUnique identifier of the return record. | String (20)WHSReturnID | Yes | WHSReturnDetailEntity | |
AccountNameName of the account for the return. | String (60)AccountName | No | WHSReturnDetailEntity | |
AccountNumCustomer account for the return. Points to a customer. | String (20)CustVendAC | No | CustTable.AccountNum | WHSReturnDetailEntity |
CarrierCodeShipping carrier used for the return. Points to a carrier record. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | WHSReturnDetailEntity |
CarrierServiceCodeService of the carrier used for the return. Points to a carrier service, together with the carrier code. | String (20)TMSCarrierServiceCode | No | TMSCarrierService.CarrierServiceCode | WHSReturnDetailEntity |
ContainerIdContainer the return relates to. Points to a record in the containers table. | String (25)WHSContainerId | No | WHSContainerTable.ContainerId | WHSReturnDetailEntity |
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 | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
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 | |
OrderNumberSales order number the return relates to. Points to a sales order. | String (20)WHSOrderNum | No | SalesTable.SalesId | WHSReturnDetailEntity |
OrderTypeKind of order the return comes from: unsupported, sales order or outbound shipment order. | EnumWHSReturnDetailOrderType (enum) | No | WHSReturnDetailEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrintedUTCDateTimeDate and time, in UTC, when the return details were printed. | UtcDateTimeWHSReturnDetailPrintedUTCDateTime | No | WHSReturnDetailEntity | |
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 | |
ReturnAddressFull address where the return is sent. | String (250)WHSReturnAddress | No | WHSReturnDetailEntity | |
ReturnAddressNameName linked to the address where the return is sent. | String (100)WHSReturnAddressName | No | WHSReturnDetailEntity | |
ReturnItemNumRMA number (return merchandise authorisation) linked to the return. | StringReturnItemNum | No | None | |
ReturnShipCarrierTrackingNumCarrier tracking number for the return shipment. | String (30)TMSReturnShipCarrierTrackingNum | No | WHSReturnDetailEntity | |
ShipmentIdShipment the return relates to. Points to a shipment record. | String (20)WHSShipmentId | No | WHSShipmentTable.ShipmentId | WHSReturnDetailEntity |
ShipUTCDateTimeDate and time, in UTC, when the goods were shipped. | UtcDateTimeWHSReturnDetailShipUTCDateTime | No | WHSReturnDetailEntity | |
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 (6)
WHSReturnIDIdxPrimary indexReplacement keyUnique, alternate key.
ShipmentIdIdxNot unique.
ShipUTCDateTimeIdxNot unique.
ReturnShipCarrierTrackingNumIdxNot unique.
ShipmentIdContainerIdxUnique.
ContainerIdIdxNot unique.
Relations (6)
Each relation joins WHSReturnDetail to another table on the fields shown.
WHSContainerTable→WHSContainerTableJoin on
ContainerId = WHSContainerTable.ContainerIdMany WHSReturnDetail records → zero or one WHSContainerTable record
SalesTable→SalesTableJoin on
OrderType = WHSReturnDetailOrderType::SalesOrder,OrderNumber = SalesTable.SalesIdMany WHSReturnDetail records → zero or one SalesTable record
WHSShipmentTable→WHSShipmentTableJoin on
ShipmentId = WHSShipmentTable.ShipmentIdMany WHSReturnDetail records → zero or one WHSShipmentTable record
CustTable→CustTableJoin on
OrderType = WHSReturnDetailOrderType::SalesOrder,AccountNum = CustTable.AccountNumMany WHSReturnDetail records → zero or one CustTable record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany WHSReturnDetail records → zero or one TMSCarrier record
TMSCarrierService→TMSCarrierServiceJoin on
CarrierCode = TMSCarrierService.CarrierCode,CarrierServiceCode = TMSCarrierService.CarrierServiceCodeMany 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.
WHSReturnDetailEntity· 14 fields from this table
Need help with WHSReturnDetail in a report, an integration or a migration? Talk to Dr Dynamics.