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 · root
  • SalesOrderTotals · OuterJoin to ReturnOrderHeaderV2Entity · read-only

Fields (41)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
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
NoYesCustTable.AccountNumSalesTable.CustAccount
CustomerRequisitionNumberCustomer's own requisition or purchase order number.String (20)
CustPurchaseOrder
NoYesSalesTable.PurchOrderFormNum
CustomerReturnReasonCodeReturn reason code for a return order.String
ReturnReasonCodeId
NoYesReturnReasonCode.ReasonCodeIdSalesTable.ReturnReasonCodeId
CustomersOrderReferenceReference text supplied by the customer.String (60)
CustRef
NoYesSalesTable.CustomerRef
DefaultReturnSiteIdSite for the order.String
InventSiteId
NoYesInventSite.SiteIdSalesTable.InventSiteId
DefaultReturnWarehouseIdWarehouse for the order.String
SalesInventLocationId
NoYesInventLocation.InventLocationIdSalesTable.InventLocationId
EmailEmail address on the order.String (80)
Email
NoYesSalesTable.Email
FormattedReturnAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
InvoiceCustomerAccountNumberCustomer account that receives the invoice.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumSalesTable.InvoiceAccount
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.

NoYesNone
IsReturnAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
IsReturnProcessingStoppedYes/no flag telling processing to skip the order.Enum
MCROrderStopped
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesTable.MCROrderStopped
LanguageIdLanguage used for the order.String (7)
CustLanguageId
NoYesLanguageTable.LanguageIdSalesTable.LanguageId
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
ReturnAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
ReturnAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
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
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
ReturnAddressNameName of the customer on the order.String (60)
SalesName
NoYesSalesTable.SalesName
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
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
ReturnDeadlineDeadline date for a return order.Date
ReturnDeadline
NoYesSalesTable.ReturnDeadline
ReturnOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
NoYesSalesTable.SalesId
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
NoYesLogisticsPostalAddress.RecId
ReturnStatusStatus of a return order: created, open, cancelled or closed.Enum
ReturnStatusHeader
  • None 0
  • Created 1
  • Open 2
  • Canceled 4
  • Closed 3
NoYesSalesTable.ReturnStatus
RMANumberReturn merchandise authorisation (RMA) number for a return.String
SalesReturnItemNum
NoYesSalesTable.ReturnItemNum
TotalDiscountAmountTotal discount amount for the order.Real
SalesDiscountAmount
NoYesSalesOrderTotals.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.

Need help with ReturnOrderHeaderCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk