Data entity

ReturnOrderLineCDSEntity

Return order lines prepared for Dataverse integration. It is built on the return order lines V2 entity and adds sales order line totals. The key is the return order number plus the line creation sequence number.

Entity name
ReturnOrderLineCDSEntity
Public entity name
CDSReturnOrderLine
OData collection
CDSReturnOrderLines
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
CDSIntegration
Keys
ReturnOrderNumber, LineCreationSequenceNumber
Staging table
ReturnOrderLineCDSStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/CDSReturnOrderLines
Dataverse virtual table
mserp_returnorderlinecdsentity. 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

  • ReturnOrderLineV2Entity · root
  • SalesOrderLineTotals · OuterJoin to ReturnOrderLineV2Entity · read-only

Fields (50)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ActualReturnArrivalDateDate the returned goods actually arrived.Date
ReturnArrivalDate
NoYesSalesLine.ReturnArrivalDate
ExpectedReturnArrivalDateEstimated arrival date for the returned goods.Date
ReturnDeadline
NoYesSalesLine.ReturnDeadline
FormattedReturnAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
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.

NoYesNone
IsReturnAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
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
LineCreationSequenceNumberSequence number that records the order in which lines were created.Integer
SalesLineCreationSequenceNumber
NoYesSalesLine.LineCreationSequenceNumber
LineDescriptionFree text description of the line or item.String (1000)
ItemFreeTxt
NoYesSalesLine.Name
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
ReferenceInventoryLotIdLot ID of the related order line.String (20)
InventRefTransId
NoYesSalesLine.InventRefTransId
ReferenceNumberNumber of the related order, such as a transfer, production or purchase order.String (20)
InventRefId
NoYesInventTransferTable.TransferIdProdTable.ProdIdPurchTable.PurchIdSalesTable.SalesIdSalesLine.InventRefId
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
ReturnAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
ReturnAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
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
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
ReturnAddressNameName of the delivery recipient or place.String (100)
LogisticsDeliveryName
NoYesSalesLine.DeliveryName
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
ReturnAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
ReturnAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
ReturnClosedDateDate the return line was closed.Date
ReturnClosedDate
NoYesSalesLine.ReturnClosedDate
ReturnDispositionCodeDisposition code that says what to do with the returned goods.String
ReturnDispositionCodeId
NoYesReturnDispositionCode.DispositionCodeIdSalesLine.ReturnDispositionCodeId
ReturnedSalesQuantityOrdered quantity in sales units.Real
SalesOrderedQty
NoYesSalesLine.SalesQty
ReturningInventoryLotIdLot ID of the original line that a return line refers to.String (20)
TradeInventTransIdReturn
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransIdReturn
ReturnInventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions.String (20)
TradeInventTransId
NoYesInventTransOrigin.InventTransIdSalesLine.InventTransId
ReturnOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
NoYesSalesTable.SalesId
ReturnPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesLogisticsPostalAddress.RecId
ReturnSalesQuantityQuantity expected to come back on a return line.Real
ReturnExpectedRetQty
NoYesSalesLine.ExpectedRetQty
ReturnSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
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
ReturnWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
RMANumberReturn merchandise authorisation (RMA) number for a return.String
SalesReturnItemNum
NoYesSalesTable.ReturnItemNum
SalesPricePrice of one unit on the line.Real
SalesPrice
NoYesSalesLine.SalesPrice
SalesUnitSymbolUnit of measure used for selling the item.String
SalesUnit
NoYesUnitOfMeasure.SymbolSalesLine.SalesUnit
TotalChargesAmountTotal charges for the line.Real
MCRTotalMarkupAmount
NoYesSalesOrderLineTotals.TotalChargesAmount
TotalDiscountAmountTotal discount for the line.Real
SalesDiscountAmount
NoYesSalesOrderLineTotals.TotalDiscountAmount
TotalTaxAmountTotal tax for the line.Real
MCRTotalTaxAmount
NoYesSalesOrderLineTotals.TotalTaxAmount

Foreign keys (19)

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 ReturnOrderLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk