Data entity

ReturnOrderHeaderV2Entity

Holds return order headers, one record per return order, keyed by the return order number. It is based on the sales order header table and adds order totals and a postal address. Each header carries the customer, RMA number, return reason, warehouse and status.

Entity name
ReturnOrderHeaderV2Entity
Public entity name
ReturnOrderHeaderV2
OData collection
ReturnOrderHeadersV2
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
ReturnOrderNumber
Staging table
ReturnOrderHeaderV2Staging

Use it in Power BI and Power Platform

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

  • SalesTable · root
  • LogisticsPostalAddressBaseEntity · OuterJoin to SalesTable
  • SalesOrderTotals · OuterJoin to SalesTable · read-only

Fields (49)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ReturnOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
NoYesSalesTable.SalesId
ContactPersonIdContact person for the order, linked to the contacts.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdSalesTable.ContactPersonId
CurrencyCodeCurrency of the order.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeSalesTable.CurrencyCode
CustomerAccountNumberCustomer account that the order is for.String (20)
CustAccount
YesYesCustTable.AccountNumSalesTable.CustAccount
CustomersOrderReferenceReference text supplied by the customer.String (60)
CustRef
NoYesSalesTable.CustomerRef
EmailEmail address on the order.String (80)
Email
NoYesSalesTable.Email
DefaultReturnWarehouseIdWarehouse for the order.String
SalesInventLocationId
NoYesInventLocation.InventLocationIdSalesTable.InventLocationId
DefaultReturnSiteIdSite for the order.String
InventSiteId
NoYesInventSite.SiteIdSalesTable.InventSiteId
LanguageIdLanguage used for the order.String (7)
CustLanguageId
YesYesLanguageTable.LanguageIdSalesTable.LanguageId
IsReturnProcessingStoppedYes/no flag telling processing to skip the order.Enum
MCROrderStopped
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable.MCROrderStopped
CustomerRequisitionNumberCustomer's own requisition or purchase order number.String (20)
CustPurchaseOrder
NoYesSalesTable.PurchOrderFormNum
ReturnDeadlineDeadline date for a return order.Date
ReturnDeadline
NoYesSalesTable.ReturnDeadline
RMANumberReturn merchandise authorisation (RMA) number for a return.String
SalesReturnItemNum
NoYesSalesTable.ReturnItemNum
CustomerReturnReasonCodeReturn reason code for a return order.String
ReturnReasonCodeId
NoYesReturnReasonCode.ReasonCodeIdSalesTable.ReturnReasonCodeId
IsReplacementSalesOrderCreatedYes/no flag showing that an up-front replacement was created.Enum
ReturnReplacementCreated
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable.ReturnReplacementCreated
ReplacementSalesOrderNumberSales order number of the replacement order.String (20)
ReturnReplacementId
NoYesSalesTable.SalesIdSalesTable.ReturnReplacementId
ReturnAddressNameName of the customer on the order.String (60)
SalesName
NoYesSalesTable.SalesName
ReturnOrderStatusStatus of the order: open, delivered, invoiced or cancelled.Enum
SalesStatus
  • None 0
  • Backorder 1
  • Delivered 2
  • Invoiced 3
  • Canceled 4
NoYesSalesTable.SalesStatus
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 order.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
InvoiceCustomerAccountNumberCustomer account that receives the invoice.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumSalesTable.InvoiceAccount
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
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
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
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
ReturnStatusStatus of a return order: created, open, cancelled or closed.Enum
ReturnStatusHeader
  • None 0
  • Created 1
  • Open 2
  • Canceled 4
  • Closed 3
NoYesSalesTable.ReturnStatus
OrderTotalAmountOverall total amount of the order.Real
MCRTotalAmount
NoYesSalesOrderTotals.OrderTotalAmount
OrderTotalChargesAmountTotal of the charges on the order.Real
MCRTotalMarkupAmount
NoYesSalesOrderTotals.OrderTotalChargesAmount
OrderTotalTaxAmountTotal tax amount for the order.Real
MCRTotalTaxAmount
NoYesSalesOrderTotals.OrderTotalTaxAmount
TotalDiscountAmountTotal discount amount for the order.Real
SalesDiscountAmount
NoYesSalesOrderTotals.TotalDiscountAmount

Foreign keys (12)

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

Email sales@drdynamics.co.uk