Data entity
ReturnOrderHeaderCDSEntity
Dataverse version of return order headers, keyed by return order number. It holds customer, invoice account, currency, site, warehouse, language and return reason code. It also holds the return address with its location details and order totals for amount, charges and tax.
- Entity name
ReturnOrderHeaderCDSEntity- Public entity name
CDSReturnOrderHeader- OData collection
CDSReturnOrderHeaders- Category
Document- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
CDSIntegration- Keys
ReturnOrderNumber- Staging table
ReturnOrderHeaderCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSReturnOrderHeaders- Dataverse virtual table
mserp_returnorderheadercdsentity. 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
ReturnOrderHeaderV2Entity· rootSalesOrderTotals· OuterJoin toReturnOrderHeaderV2Entity· read-only
Fields (41)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
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 | No | Yes | CustTable.AccountNum | SalesTable.CustAccount |
CustomerRequisitionNumberCustomer's own requisition or purchase order number. | String (20)CustPurchaseOrder | No | Yes | SalesTable.PurchOrderFormNum | |
CustomerReturnReasonCodeReturn reason code for a return order. | StringReturnReasonCodeId | No | Yes | ReturnReasonCode.ReasonCodeId | SalesTable.ReturnReasonCodeId |
CustomersOrderReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | SalesTable.CustomerRef | |
DefaultReturnSiteIdSite for the order. | StringInventSiteId | No | Yes | InventSite.SiteId | SalesTable.InventSiteId |
DefaultReturnWarehouseIdWarehouse for the order. | StringSalesInventLocationId | No | Yes | InventLocation.InventLocationId | SalesTable.InventLocationId |
EmailEmail address on the order. | String (80)Email | No | Yes | SalesTable.Email | |
FormattedReturnAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
InvoiceCustomerAccountNumberCustomer account that receives the invoice. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | SalesTable.InvoiceAccount |
IsReturnAddressOrderSpecificYes/No flag showing whether the return address is a one-time address used only for this order. | EnumNoYesId
| No | Yes | None | |
IsReturnAddressPrivateShows whether the address is private (Yes or No). | EnumLogisticsIsPrivate
| No | Yes | LogisticsPostalAddress.IsPrivate | |
IsReturnProcessingStoppedYes/no flag telling processing to skip the order. | EnumMCROrderStopped
| No | Yes | SalesTable.MCROrderStopped | |
LanguageIdLanguage used for the order. | String (7)CustLanguageId | No | Yes | LanguageTable.LanguageId | SalesTable.LanguageId |
OrderTotalAmountOverall total amount of the order. | RealMCRTotalAmount | No | Yes | SalesOrderTotals.OrderTotalAmount | |
OrderTotalChargesAmountTotal of the charges on the order. | RealMCRTotalMarkupAmount | No | Yes | SalesOrderTotals.OrderTotalChargesAmount | |
OrderTotalTaxAmountTotal tax amount for the order. | RealMCRTotalTaxAmount | No | Yes | SalesOrderTotals.OrderTotalTaxAmount | |
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 customer on the order. | String (60)SalesName | No | Yes | SalesTable.SalesName | |
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 | |
ReturnDeadlineDeadline date for a return order. | DateReturnDeadline | No | Yes | SalesTable.ReturnDeadline | |
ReturnOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
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 | Yes | LogisticsPostalAddress.RecId | |
ReturnStatusStatus of a return order: created, open, cancelled or closed. | Enum
| No | Yes | SalesTable.ReturnStatus | |
RMANumberReturn merchandise authorisation (RMA) number for a return. | StringSalesReturnItemNum | No | Yes | SalesTable.ReturnItemNum | |
TotalDiscountAmountTotal discount amount for the order. | RealSalesDiscountAmount | No | Yes | SalesOrderTotals.TotalDiscountAmount |
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
CustomerReturnReasonCode→ReturnReasonCode.ReasonCodeId(key of ReturnReasonCode)Many SalesTable records → zero or one ReturnReasonCode record
ReturnReasonCode details: see ReturnReasonCodeBiEntity
DefaultReturnSiteId→InventSite.SiteId(key of InventSite)Many SalesTable records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
DefaultReturnWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many SalesTable records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SalesTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
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
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 ReturnOrderHeaderCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.