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 · root
  • EcoResCategory · OuterJoin to SalesLine · read-only
  • PCClass · Derived to EcoResCategory
  • LedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to SalesLine · read-only
  • SalesLineForeignTradeCategory · OuterJoin to SalesLine
  • InventDim · OuterJoin to SalesLine · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to SalesLine
  • SalesTable · InnerJoin to SalesLine · read-only

Fields (65)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RMANumberReturn merchandise authorisation (RMA) number for a return.String
SalesReturnItemNum
NoYesSalesTable.ReturnItemNum
ReturnOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
YesYesSalesTable.SalesId
CustomerAccountNumberCustomer account that the order is for.String (20)
CustAccount
NoYesCustTable.AccountNumSalesTable.CustAccount
InvoiceCustomerAccountNumberCustomer account that receives the invoice.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumSalesTable.InvoiceAccount
ReturnUnitCostCost price used for a returned item on the line.Real
ReturnCostPrice
NoYesSalesLine.CostPrice
ReturnSalesQuantityQuantity expected to come back on a return line.Real
ReturnExpectedRetQty
NoYesSalesLine.ExpectedRetQty
ExternalItemNumberItem number used by the customer or an outside party.String (20)
SalesExternalItemId
NoYesSalesLine.ExternalItemId
ReferenceNumberNumber of the related order, such as a transfer, production or purchase order.String (20)
InventRefId
NoYesInventTransferTable.TransferIdProdTable.ProdIdPurchTable.PurchIdSalesTable.SalesIdSalesLine.InventRefId
ReferenceInventoryLotIdLot ID of the related order line.String (20)
InventRefTransId
NoYesSalesLine.InventRefTransId
ReferenceTypeType of the related order, for example purchase order, production or transfer order.Enum
InventRefType
  • None 0
  • Sales 1
  • Purch 2
  • Production 3
  • ProdLine 4
  • InventJournal 5
  • CRMQuotation 6
  • InventTransfer 7
  • FixedAsset 8
NoYesSalesLine.InventRefType
ReturnInventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions.String (20)
TradeInventTransId
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransId
ReturningInventoryLotIdLot ID of the original line that a return line refers to.String (20)
TradeInventTransIdReturn
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransIdReturn
ItemNumberItem number of the product sold, pointing to an item record.String (20)
ItemIdSmall
NoYesInventTable.ItemIdSalesLine.ItemId
LineAmountNet amount of the line.Real
SalesLineAmount
NoYesSalesLine.LineAmount
LineDescriptionFree text description of the line or item.String (1000)
ItemFreeTxt
NoYesSalesLine.Name
ReturnCatchWeightQuantityQuantity in catch weight units.Real
PdsCWInventQty
NoYesSalesLine.PdsCWQty
IsReturnedQuantityAvailableForReservationYes/No flag that allows reservation on a return line.Enum
ReturnAllowReservation
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesLine.ReturnAllowReservation
ActualReturnArrivalDateDate the returned goods actually arrived.Date
ReturnArrivalDate
NoYesSalesLine.ReturnArrivalDate
ReturnClosedDateDate the return line was closed.Date
ReturnClosedDate
NoYesSalesLine.ReturnClosedDate
ExpectedReturnArrivalDateEstimated arrival date for the returned goods.Date
ReturnDeadline
NoYesSalesLine.ReturnDeadline
ReturnDispositionCodeDisposition code that says what to do with the returned goods.String
ReturnDispositionCodeId
NoYesReturnDispositionCode.DispositionCodeIdSalesLine.ReturnDispositionCodeId
ReturnStatusStatus of a return line, such as expected, received, invoiced or cancelled.Enum
ReturnStatusLine
  • None 0
  • Awaiting 1
  • Registered 2
  • Quarantine 3
  • Received 4
  • Invoiced 5
  • Canceled 6
NoYesSalesLine.ReturnStatus
SalesPricePrice of one unit on the line.Real
SalesPrice
NoYesSalesLine.SalesPrice
ReturnedSalesQuantityOrdered quantity in sales units.Real
SalesOrderedQty
NoYesSalesLine.SalesQty
SalesUnitSymbolUnit of measure used for selling the item.String
SalesUnit
NoYesUnitOfMeasure.SymbolSalesLine.SalesUnit
OriginCountryRegionIdCountry or region where the item comes from.String
ItemOrigCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdSalesLine.OrigCountryRegionId
OriginStateIdState where the item comes from, within the origin country or region.String
ItemOrigStateId
NoYesLogisticsAddressState.StateIdSalesLine.OrigStateId
ReturnAddressNameName of the delivery recipient or place.String (100)
LogisticsDeliveryName
NoYesSalesLine.DeliveryName
MainAccountIdDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
MainAccountIdReference to the main account and dimension combination used for the line.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdSalesLine.LedgerDimension
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ItemBatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ReturnWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ReturnSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
OrderedInventoryStatusIdInventory status of the stock.String
WHSInventStatusId
NoYesWHSInventStatus.InventStatusIdInventDim.InventStatusId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
ReturnPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)LogisticsPostalAddress.RecId
IsReturnAddressOrderSpecificYes/No flag showing whether the return address is a one-time address used only for this line.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
FormattedReturnAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
ReturnAddressBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
ReturnAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
ReturnAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
ReturnAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
ReturnAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
ReturnAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
ReturnAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
ReturnAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
IsReturnAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
ReturnAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
ReturnAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
ReturnAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
ReturnAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
ReturnAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
ReturnAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
ReturnAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
ReturnAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
ReturnAddressCityInKanaCity name written in Kana; used for Japan.String (60)
AssetCityKana_JP
NoYesLogisticsPostalAddress.CityKana_JP
ReturnAddressStreetInKanaStreet name written in Kana; used for Japan.String (250)
AssetStreetKana_JP
NoYesLogisticsPostalAddress.StreetKana_JP
ReturnAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
ReturnAddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
ReturnAddressValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (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.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed

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.

Need help with ReturnOrderLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk