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· rootSalesOrderLineTotals· OuterJoin toReturnOrderLineV2Entity· read-only
Fields (50)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ActualReturnArrivalDateDate the returned goods actually arrived. | DateReturnArrivalDate | No | Yes | SalesLine.ReturnArrivalDate | |
ExpectedReturnArrivalDateEstimated arrival date for the returned goods. | DateReturnDeadline | No | Yes | SalesLine.ReturnDeadline | |
FormattedReturnAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
IsReturnAddressOrderSpecificYes/No flag showing whether the return address is a one-time address used only for this line. | EnumNoYesId
| No | Yes | None | |
IsReturnAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
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 | |
LineCreationSequenceNumberSequence number that records the order in which lines were created. | IntegerSalesLineCreationSequenceNumber | No | Yes | SalesLine.LineCreationSequenceNumber | |
LineDescriptionFree text description of the line or item. | String (1000)ItemFreeTxt | No | Yes | SalesLine.Name | |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
ReferenceInventoryLotIdLot ID of the related order line. | String (20)InventRefTransId | No | Yes | SalesLine.InventRefTransId | |
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 |
ReferenceTypeType of the related order, for example purchase order, production or transfer order. | Enum
| No | Yes | SalesLine.InventRefType | |
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 |
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 | |
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 | |
ReturnAddressNameName of the delivery recipient or place. | String (100)LogisticsDeliveryName | No | Yes | SalesLine.DeliveryName | |
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 | |
ReturnAddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
ReturnAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
ReturnClosedDateDate the return line was closed. | DateReturnClosedDate | No | Yes | SalesLine.ReturnClosedDate | |
ReturnDispositionCodeDisposition code that says what to do with the returned goods. | StringReturnDispositionCodeId | No | Yes | ReturnDispositionCode.DispositionCodeId | SalesLine.ReturnDispositionCodeId |
ReturnedSalesQuantityOrdered quantity in sales units. | RealSalesOrderedQty | No | Yes | SalesLine.SalesQty | |
ReturningInventoryLotIdLot ID of the original line that a return line refers to. | String (20)TradeInventTransIdReturn | No | Yes | InventTransOrigin.InventTransId | SalesLine.InventTransIdReturn |
ReturnInventoryLotIdLot ID that uniquely identifies the line and links it to inventory transactions. | String (20)TradeInventTransId | No | Yes | InventTransOrigin.InventTransId | SalesLine.InventTransId |
ReturnOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
ReturnPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | LogisticsPostalAddress.RecId | |
ReturnSalesQuantityQuantity expected to come back on a return line. | RealReturnExpectedRetQty | No | Yes | SalesLine.ExpectedRetQty | |
ReturnSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ReturnStatusStatus of a return line, such as expected, received, invoiced or cancelled. | Enum
| No | Yes | SalesLine.ReturnStatus | |
ReturnWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
RMANumberReturn merchandise authorisation (RMA) number for a return. | StringSalesReturnItemNum | No | Yes | SalesTable.ReturnItemNum | |
SalesPricePrice of one unit on the line. | RealSalesPrice | No | Yes | SalesLine.SalesPrice | |
SalesUnitSymbolUnit of measure used for selling the item. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | SalesLine.SalesUnit |
TotalChargesAmountTotal charges for the line. | RealMCRTotalMarkupAmount | No | Yes | SalesOrderLineTotals.TotalChargesAmount | |
TotalDiscountAmountTotal discount for the line. | RealSalesDiscountAmount | No | Yes | SalesOrderLineTotals.TotalDiscountAmount | |
TotalTaxAmountTotal tax for the line. | RealMCRTotalTaxAmount | No | Yes | SalesOrderLineTotals.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.
ItemNumber→InventTable.ItemId(key of InventTable)Many SalesLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
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
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
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
ReturnDispositionCode→ReturnDispositionCode.DispositionCodeId(key of ReturnDispositionCode)Many SalesLine records → zero or one ReturnDispositionCode record
ReturnDispositionCode details: see ReturnDispositionCodeEntity
ReturningInventoryLotId→InventTransOrigin.InventTransId(key of InventTransOrigin)Many SalesLine records → zero or one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
ReturnInventoryLotId→InventTransOrigin.InventTransId(key of InventTransOrigin)Zero or one SalesLine record → zero or one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
ReturnSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ReturnWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
SalesUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many SalesLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
Need help with ReturnOrderLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.