Data entity
ReturnOrderLineEntity
Holds return order lines, based on sales order lines. The key is the return order number plus the return lot ID. It covers the item, return quantity, return cost price, disposition code, return status and arrival dates. It also includes category, inventory dimension and address details.
- Entity name
ReturnOrderLineEntity- Public entity name
ReturnOrderLine- OData collection
ReturnOrderLines- Category
Document- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
LogisticsBasic- Keys
ReturnOrderNumber, ReturnInventoryLotId- Staging table
ReturnOrderLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ReturnOrderLines- Dataverse virtual table
mserp_returnorderlineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
SalesLine· rootEcoResCategory· OuterJoin toSalesLine· read-onlyPCClass· Derived toEcoResCategoryLedgerDimensionDAVC(tableDimensionCombinationEntity) · OuterJoin toSalesLine· read-onlySalesLineForeignTradeCategory· OuterJoin toSalesLineInventDim· OuterJoin toSalesLine· read-onlyLogisticsPostalAddressBaseEntity· OuterJoin toSalesLineSalesTable· InnerJoin toSalesLine· read-only
Fields (65)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RMANumberReturn merchandise authorisation (RMA) number for a return. | StringSalesReturnItemNum | No | Yes | SalesTable.ReturnItemNum | |
ReturnOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | Yes | Yes | SalesTable.SalesId | |
CustomerAccountNumberCustomer account that the order is for. | String (20)CustAccount | No | Yes | CustTable.AccountNum | SalesTable.CustAccount |
InvoiceCustomerAccountNumberCustomer account that receives the invoice. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | SalesTable.InvoiceAccount |
ReturnUnitCostCost price used for a returned item on the line. | RealReturnCostPrice | No | Yes | SalesLine.CostPrice | |
ReturnSalesQuantityQuantity expected to come back on a return line. | RealReturnExpectedRetQty | No | Yes | SalesLine.ExpectedRetQty | |
ExternalItemNumberItem number used by the customer or an outside party. | String (20)SalesExternalItemId | No | Yes | SalesLine.ExternalItemId | |
ReferenceNumberNumber of the related order, such as a transfer, production or purchase order. | String (20)InventRefId | No | Yes | InventTransferTable.TransferIdProdTable.ProdIdPurchTable.PurchIdSalesTable.SalesId | SalesLine.InventRefId |
ReferenceInventoryLotIdLot ID of the related order line. | String (20)InventRefTransId | No | Yes | SalesLine.InventRefTransId | |
ReferenceTypeType of the related order, for example purchase order, production or transfer order. | Enum
| No | Yes | SalesLine.InventRefType | |
ReturnInventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions. | String (20)TradeInventTransId | No | Yes | InventTransOrigin.InventTransId | SalesLine.InventTransId |
ReturningInventoryLotIdLot ID of the original line that a return line refers to. | String (20)TradeInventTransIdReturn | No | Yes | InventTransOrigin.InventTransId | SalesLine.InventTransIdReturn |
ItemNumberItem number of the product sold, pointing to an item record. | String (20)ItemIdSmall | No | Yes | InventTable.ItemId | SalesLine.ItemId |
LineAmountNet amount of the line. | RealSalesLineAmount | No | Yes | SalesLine.LineAmount | |
LineDescriptionFree text description of the line or item. | String (1000)ItemFreeTxt | No | Yes | SalesLine.Name | |
ReturnCatchWeightQuantityQuantity in catch weight units. | RealPdsCWInventQty | No | Yes | SalesLine.PdsCWQty | |
IsReturnedQuantityAvailableForReservationYes/No flag that allows reservation on a return line. | EnumReturnAllowReservation
| No | Yes | SalesLine.ReturnAllowReservation | |
ActualReturnArrivalDateDate the returned goods actually arrived. | DateReturnArrivalDate | No | Yes | SalesLine.ReturnArrivalDate | |
ReturnClosedDateDate the return line was closed. | DateReturnClosedDate | No | Yes | SalesLine.ReturnClosedDate | |
ExpectedReturnArrivalDateEstimated arrival date for the returned goods. | DateReturnDeadline | No | Yes | SalesLine.ReturnDeadline | |
ReturnDispositionCodeDisposition code that says what to do with the returned goods. | StringReturnDispositionCodeId | No | Yes | ReturnDispositionCode.DispositionCodeId | SalesLine.ReturnDispositionCodeId |
ReturnStatusStatus of a return line, such as expected, received, invoiced or cancelled. | Enum
| No | Yes | SalesLine.ReturnStatus | |
SalesPricePrice of one unit on the line. | RealSalesPrice | No | Yes | SalesLine.SalesPrice | |
ReturnedSalesQuantityOrdered quantity in sales units. | RealSalesOrderedQty | No | Yes | SalesLine.SalesQty | |
SalesUnitSymbolUnit of measure used for selling the item. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | SalesLine.SalesUnit |
OriginCountryRegionIdCountry or region where the item comes from. | StringItemOrigCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | SalesLine.OrigCountryRegionId |
OriginStateIdState where the item comes from, within the origin country or region. | StringItemOrigStateId | No | Yes | LogisticsAddressState.StateId | SalesLine.OrigStateId |
ReturnAddressNameName of the delivery recipient or place. | String (100)LogisticsDeliveryName | No | Yes | SalesLine.DeliveryName | |
MainAccountIdDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
MainAccountIdReference to the main account and dimension combination used for the line. | Int64LedgerDimensionDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | SalesLine.LedgerDimension |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ItemBatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ReturnWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ReturnSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
OrderedInventoryStatusIdInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
ReturnPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | No (private) | LogisticsPostalAddress.RecId | |
IsReturnAddressOrderSpecificYes/No flag showing whether the return address is a one-time address used only for this line. | EnumNoYesId
| No | Yes | computed | |
FormattedReturnAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
ReturnAddressBuildingComplimentExtra building detail, such as an entrance or floor. | String (60)LogisticsAddressBuildingCompliment | No | Yes | LogisticsPostalAddress.BuildingCompliment | |
ReturnAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
ReturnAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
ReturnAddressCountryRegionISOCodeISO code of the country or region of the address. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | None | |
ReturnAddressCountyIdCounty code of the address. It depends on the country and state. | String (30)LogisticsAddressCountyId | No | Yes | LogisticsAddressCounty.CountyId | LogisticsPostalAddress.County |
ReturnAddressDescriptionName or description of the location. | String (60)LogisticsDescription | No | Yes | LogisticsLocation.Description | |
ReturnAddressDistrictNameName of the district, as text. | String (60)LogisticsAddressDistrictName | No | Yes | LogisticsPostalAddress.DistrictName | |
ReturnAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table. | String (9)LogisticsDunsNumber | No | Yes | DirDunsNumber.DunsNumber | |
IsReturnAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
ReturnAddressLatitudeGeographic latitude of the address. | RealLogisticsAddressLatitude | No | Yes | LogisticsPostalAddress.Latitude | |
ReturnAddressLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | No | Yes | LogisticsLocation.LocationId | |
ReturnAddressLongitudeGeographic longitude of the address. | RealLogisticsAddressLongitude | No | Yes | LogisticsPostalAddress.Longitude | |
ReturnAddressPostBoxPost office box number. | String (20)LogisticsAddressPostBox | No | Yes | LogisticsPostalAddress.PostBox | |
ReturnAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressState.StateId | LogisticsPostalAddress.State |
ReturnAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
ReturnAddressStreetNumberStreet or house number. | String (20)LogisticsAddressStreetNumber | No | Yes | LogisticsPostalAddress.StreetNumber | |
ReturnAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
ReturnAddressCityInKanaCity name written in Kana; used for Japan. | String (60)AssetCityKana_JP | No | Yes | LogisticsPostalAddress.CityKana_JP | |
ReturnAddressStreetInKanaStreet name written in Kana; used for Japan. | String (250)AssetStreetKana_JP | No | Yes | LogisticsPostalAddress.StreetKana_JP | |
ReturnAddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
ReturnAddressValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | No (private) | LogisticsPostalAddress.ValidFrom | |
ReturnAddressValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | No (private) | LogisticsPostalAddress.ValidTo | |
CalculateLineAmountYes/No switch that decides whether the net amount is derived from related fields such as price and discounts, or entered directly. | EnumNoYesId
| No | Yes | computed |
Foreign keys (25)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
CustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
ReferenceNumber→InventTransferTable.TransferId(key of InventTransferTable)Relation also requires InventRefType = InventRefType::InventTransfer.
Many SalesLine records → zero or one InventTransferTable record
InventTransferTable details: see InventTransferOrderHeaderEntity, InventTransferTableBientity
ReferenceNumber→ProdTable.ProdId(key of ProdTable)Relation also requires InventRefType = InventRefType::Production.
Many SalesLine records → zero or one ProdTable record
ProdTable details: see ProdBatchOrderHeaderEntity, ProdProductionOrderHeaderEntity, IoTIntMfgSensorJobItemBatchAttributeEntity
ReferenceNumber→PurchTable.PurchId(key of PurchTable)Relation also requires InventRefType = InventRefType::Purch.
Many SalesLine records → zero or one PurchTable record
PurchTable details: see PurchPurchaseOrderHeaderV2Entity, PurchPurchaseOrderHeaderEntity, ProjSubContractPurchaseOrderHeaderEntity
ReferenceNumber→SalesTable.SalesId(key of SalesTable)Relation also requires InventRefType = InventRefType::Sales.
Many SalesLine records → zero or one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
ReturnInventoryLotId→InventTransOrigin.InventTransId(key of InventTransOrigin)Zero or one SalesLine record → zero or one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
ReturningInventoryLotId→InventTransOrigin.InventTransId(key of InventTransOrigin)Many SalesLine records → zero or one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
ItemNumber→InventTable.ItemId(key of InventTable)Many SalesLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
ReturnDispositionCode→ReturnDispositionCode.DispositionCodeId(key of ReturnDispositionCode)Many SalesLine records → zero or one ReturnDispositionCode record
ReturnDispositionCode details: see ReturnDispositionCodeEntity
SalesUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many SalesLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
OriginCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many SalesLine records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
OriginStateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
OriginStateId=LogisticsAddressState.StateId,OriginCountryRegionId=LogisticsAddressState.CountryRegionIdMany SalesLine records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
MainAccountId→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many SalesLine records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ReturnWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ReturnSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
OrderedInventoryStatusId→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ReturnAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
ReturnAddressCountyId→LogisticsAddressCounty.CountyId(key of LogisticsAddressCounty)Join on all of:
ReturnAddressCountyId=LogisticsAddressCounty.CountyId,ReturnAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,ReturnAddressStateId=LogisticsAddressCounty.StateIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
ReturnAddressStateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
ReturnAddressStateId=LogisticsAddressState.StateId,ReturnAddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
Need help with ReturnOrderLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.