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· rootLogisticsPostalAddressBaseEntity· OuterJoin toSalesTable
Fields (43)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ReturnOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
ContactPersonIdContact person for the order, linked to the contacts. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | SalesTable.ContactPersonId |
CurrencyCodeCurrency of the order. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | SalesTable.CurrencyCode |
CustomerAccountNumberCustomer account that the order is for. | String (20)CustAccount | Yes | Yes | CustTable.AccountNum | SalesTable.CustAccount |
CustomersOrderReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | SalesTable.CustomerRef | |
EmailEmail address on the order. | String (80)Email | No | Yes | SalesTable.Email | |
DefaultReturnWarehouseIdWarehouse for the order. | StringSalesInventLocationId | No | Yes | InventLocation.InventLocationId | SalesTable.InventLocationId |
DefaultReturnSiteIdSite for the order. | StringInventSiteId | No | Yes | InventSite.SiteId | SalesTable.InventSiteId |
LanguageIdLanguage used for the order. | String (7)CustLanguageId | No | Yes | LanguageTable.LanguageId | SalesTable.LanguageId |
IsReturnProcessingStoppedYes/no flag telling processing to skip the order. | EnumMCROrderStopped
| No | Yes | SalesTable.MCROrderStopped | |
CustomerRequisitionNumberCustomer's own requisition or purchase order number. | String (20)CustPurchaseOrder | No | Yes | SalesTable.PurchOrderFormNum | |
ReturnDeadlineDeadline date for a return order. | DateReturnDeadline | No | Yes | SalesTable.ReturnDeadline | |
RMANumberReturn merchandise authorisation (RMA) number for a return. | StringSalesReturnItemNum | No | Yes | SalesTable.ReturnItemNum | |
CustomerReturnReasonCodeReturn reason code for a return order. | StringReturnReasonCodeId | No | Yes | ReturnReasonCode.ReasonCodeId | SalesTable.ReturnReasonCodeId |
IsReplacementSalesOrderCreatedYes/no flag showing that an up-front replacement was created. | EnumReturnReplacementCreated
| No | Yes | SalesTable.ReturnReplacementCreated | |
ReplacementSalesOrderNumberSales order number of the replacement order. | String (20)ReturnReplacementId | No | Yes | SalesTable.SalesId | SalesTable.ReturnReplacementId |
ReturnAddressNameName of the customer on the order. | String (60)SalesName | No | Yes | SalesTable.SalesName | |
ReturnOrderStatusStatus of the order: open, delivered, invoiced or cancelled. | Enum
| No | Yes | SalesTable.SalesStatus | |
ReturnPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | No (private) | LogisticsPostalAddress.RecId | |
IsReturnAddressOrderSpecificShows whether the return address is a one-time address for this order only. | EnumNoYesId
| No | Yes | computed | |
FormattedReturnAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
ReturnAddressBuildingComplimentExtra building detail, such as an entrance or floor. | String (60)LogisticsAddressBuildingCompliment | No | Yes | LogisticsPostalAddress.BuildingCompliment | |
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 |
ReturnAddressCountryRegionISOCodeISO code of the country or region of the address. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | None | |
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 | |
IsReturnAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
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 | |
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 | |
ReturnAddressValidFromDate and time from which the address is effective. | UtcDateTimeEffectiveDateTime | No | No (private) | LogisticsPostalAddress.ValidFrom | |
ReturnAddressValidToDate and time when the address expires. | UtcDateTimeExpirationDateTime | No | No (private) | LogisticsPostalAddress.ValidTo | |
ReturnAddressTimeZoneTime zone of the address. | Enum
| No | Yes | LogisticsPostalAddress.TimeZone | |
ReturnAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
ReturnAddressCityInKanaCity name written in Kana; used for Japan. | String (60)AssetCityKana_JP | No | Yes | LogisticsPostalAddress.CityKana_JP | |
ReturnAddressStreetInKanaStreet name written in Kana; used for Japan. | String (250)AssetStreetKana_JP | No | Yes | LogisticsPostalAddress.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.
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many SalesTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many SalesTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
DefaultReturnWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many SalesTable records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
DefaultReturnSiteId→InventSite.SiteId(key of InventSite)Many SalesTable records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
LanguageId→LanguageTable.LanguageId(key of LanguageTable)Relation also requires LanguageTable.LabelFile = 1.
Many SalesTable records → exactly one LanguageTable record
LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity
CustomerReturnReasonCode→ReturnReasonCode.ReasonCodeId(key of ReturnReasonCode)Many SalesTable records → zero or one ReturnReasonCode record
ReturnReasonCode details: see ReturnReasonCodeBiEntity
ReplacementSalesOrderNumber→SalesTable.SalesId(key of SalesTable)Many SalesTable 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
Need help with ReturnOrderHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.