Data entity

ReturnOrderHeaderEntity

Return order headers, keyed by return order number and based on sales orders. It holds customer account, currency, site, warehouse, language, status, deadline, RMA number and return reason code. It also holds up-front replacement details and the return address.

Entity name
ReturnOrderHeaderEntity
Public entity name
ReturnOrderHeader
OData collection
ReturnOrderHeaders
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
ReturnOrderNumber
Staging table
ReturnOrderHeaderStaging

Use it in Power BI and Power Platform

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

Fields (43)

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
NoYesCurrency.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
NoYesLanguageTable.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
IsReturnAddressOrderSpecificShows whether the return address is a one-time address for this order only.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
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

Foreign keys (11)

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

Email sales@drdynamics.co.uk