Data entity

PurchPurchaseOrderHeaderEntity

Purchase order headers, one record per purchase order number. It holds the vendor and invoice account, status, currency, delivery details, payment terms, discount groups, warehouse and site. It also links to the delivery address, dimensions and some country-specific extra data.

Entity name
PurchPurchaseOrderHeaderEntity
Public entity name
PurchaseOrderHeader
OData collection
PurchaseOrderHeaders
Category
Document
Module
Procurement and sourcing
Read-only
No
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
PurchaseOrderNumber
Staging table
PurchPurchaseOrderHeaderStaging

Use it in Power BI and Power Platform

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

  • PurchTable · root
  • AccountingDistributionTemplate · OuterJoin to PurchTable · read-only
  • ConfirmingPO · OuterJoin to PurchTable · read-only
  • VendInvoiceDeclaration_IS · OuterJoin to PurchTable · read-only
  • DimensionDAVS (table DimensionSetEntity) · OuterJoin to PurchTable · read-only
  • ReasonTableRef · OuterJoin to PurchTable
  • DeliveryLogisticsPostalAddress (table LogisticsPostalAddressBaseEntity) · OuterJoin to PurchTable
  • PurchTable_W · OuterJoin to PurchTable
  • InvoiceLogisticsPostalAddress (table LogisticsPostalAddress) · OuterJoin to PurchTable_W · read-only
  • TMSPurchTable · OuterJoin to PurchTable
  • HcmWorker_Orderer (table HcmWorker) · OuterJoin to PurchTable · read-only
  • HcmWorker_Requester (table HcmWorker) · OuterJoin to PurchTable · read-only
  • TransportationDocument · OuterJoin to PurchTable · read-only

Fields (120)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
PurchaseOrderStatusOrder status: open, received, invoiced or cancelled.Enum
PurchStatus
  • None 0
  • Backorder 1
  • Received 2
  • Invoiced 3
  • Canceled 4
NoYesPurchTable.PurchStatus
BankDocumentTypeType of bank document tied to the order, such as letter of credit, import collection or letter of guarantee.Enum
BankDocumentFacilityNature
BankDocumentType
  • None 0
  • LetterOfCredit 1
  • ImportCollection 2
  • LetterOfGuarantee 3
NoYesPurchTable.BankDocumentType
CashDiscountPercentageCash discount as a percentage.Real
DiscPct
NoYesPurchTable.CashDiscPercent
IsChangeManagementActiveYes or No value showing whether change management is active for the order.Enum
VersioningChangeRequestRequired
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.ChangeRequestRequired
OrderVendorAccountNumberAccount number of the vendor the order is placed with.String (20)
VendAccount
YesYesVendTable.AccountNumPurchTable.OrderAccount
LineDiscountVendorGroupCodeLine discount group applied to the vendor, linked to a price group.String
VendLineDiscCode
NoYesPurchTable.LineDisc
AccountingDateAccounting date set on the order.Date
AccountingDate
NoYesPurchTable.AccountingDate
AccountingDistributionTemplateRecIdPoints to the accounting distribution template used on the order.Int64
AccountingDistributionTemplateRecId
NoNo (private)AccountingDistributionTemplate.RecIdPurchTable.AccountingDistributionTemplate
AccountingDistributionTemplateNameName that identifies the template.String (40)
TemplateName
NoYesAccountingDistributionTemplate.Name
CashDiscountCodeCash discount code that applies to the order.String
VendCashDiscCode
NoYesCashDisc.CashDiscCodePurchTable.CashDisc
ConfirmedDeliveryDateReceipt date that the vendor has confirmed.Date
PurchTableConfirmedReceiptDate
NoYesPurchTable.ConfirmedDlv
IsConsolidatedInvoiceTargetYes or No value for the consolidation target, used for Japan.Enum
VendConsTarget_JP
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.ConsTarget_JP
ContactPersonIdID of the contact person for the order, linked to the contacts table.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdPurchTable.ContactPersonId
CurrencyCodeCurrency code of the order.String (3)
VendCurrencyCode
NoYesCurrency.CurrencyCodePurchTable.CurrencyCode
DefaultLedgerDimensionPoints to the set of financial dimension values set as default for the order.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdPurchTable.DefaultDimension
RequestedDeliveryDateReceipt date requested for the order.Date
PurchTableRequestedReceiptDate
NoYesPurchTable.DeliveryDate
DeliveryAddressNameName of the delivery location.String (100)
LogisticsDeliveryName
NoYesPurchTable.DeliveryName
TotalDiscountPercentageDiscount percentage for the whole order.Real
PurchEndDiscPct
NoYesPurchTable.DiscPercent
DeliveryModeIdCode for the mode of delivery.String
VendDlvModeId
NoYesDlvMode.CodePurchTable.DlvMode
DeliveryTermsIdCode for the terms of delivery.String
VendDlvTermId
NoYesDlvTerm.CodePurchTable.DlvTerm
EmailEmail address stored on the order.String (80)
EmailBase
NoYesPurchTable.Email
TotalDiscountVendorGroupCodeTotal discount group for the vendor, linked to a price group.String
VendEndDiscCode
NoYesPurchTable.EndDisc
FixedDueDateFixed due date set for payment.Date
PurchFixedDueDate
NoYesPurchTable.FixedDueDate
ArePricesIncludingSalesTaxYes or No value showing whether prices include sales tax.Enum
InclTax
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.InclTax
DefaultReceivingWarehouseIdWarehouse that the order is for.String
PurchInventLocationId
NoYesInventLocation.InventLocationIdPurchTable.InventLocationId
DefaultReceivingSiteIdSite that the order is for.String
InventSiteId
NoYesInventSite.SiteIdPurchTable.InventSiteId
InvoiceVendorAccountNumberVendor account to which the invoice is addressed.String (20)
VendInvoiceAccount
NoYesVendTable.AccountNumPurchTable.InvoiceAccount
BuyerGroupIdBuyer group assigned to the order.String
ItemBuyerGroupId
NoYesInventBuyerGroup.GroupPurchTable.ItemBuyerGroupId
LanguageIdLanguage code for the order.String (7)
VendLanguageId
NoYesLanguageTable.LanguageIdPurchTable.LanguageId
ChargeVendorGroupIdCharges group applied to the order.String
VendMarkupGroupId
NoYesPurchTable.MarkupGroup
IsDeliveredDirectlyYes or No value showing whether the order is a direct delivery.Enum
MCRDropShipment
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.MCRDropShipment
MultilineDiscountVendorGroupCodeMultiline discount group, linked to a price group.String
VendMultiLineDiscCode
NoYesPurchTable.MultiLineDisc
NumberSequenceGroupIdNumber sequence group used for the order.String
NumberSequenceGroupId
NoYesNumberSequenceGroup.numberSequenceGroupIdPurchTable.NumberSequenceGroup
IsOneTimeVendorYes or No value showing whether the vendor is a one-time supplier.Enum
OneTimeSupplier
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.OneTimeVendor
PaymentTermsNameTerms of payment for the order.String (100)
VendPaymTermId
NoYesPaymTerm.PaymTermIdPurchTable.Payment
PaymentScheduleNamePayment schedule that applies to the order.String (30)
PaymSchedId
NoYesPaymSched.NamePurchTable.PaymentSched
VendorPaymentMethodNameMethod of payment for the vendor.String
VendPaymMode
NoYesVendPaymModeTable.PaymModePurchTable.PaymMode
VendorPaymentMethodSpecificationNamePayment specification linked to the method of payment.String
VendPaymSpec
NoYesVendPaymModeSpec.SpecificationPurchTable.PaymSpec
VendorPostingProfileIdVendor posting profile for the order.String
VendPostingProfile
NoYesVendLedger.PostingProfilePurchTable.PostingProfile
PriceVendorGroupCodePrice group of the vendor.String
VendPriceGroup
NoYesPurchTable.PriceGroupId
PurchaseOrderNumberPurchase order number. It identifies the order.String (20)
PurchIdBase
NoYesPurchTable.PurchId
PurchaseOrderNameName of the vendor.String (60)
PurchName
NoYesPurchTable.PurchName
PurchaseOrderPoolIdPurchase pool the order belongs to.String
PurchPoolId
NoYesPurchPool.PurchPoolIdPurchTable.PurchPoolId
ReplenishmentWarehouseIdWarehouse used as the replenishment location.String
InventLocationId
NoYesInventLocation.InventLocationIdPurchTable.ReplenishmentLocation
ReplenishmentServiceCategoryIdRetail service category linked to the order.String
RetailServiceCategoryId
NoYesRetailServiceCategory.ServiceCategoryPurchTable.ServiceCategory
AttentionInformationAttention note for the order, up to 255 characters.String (255)
PurchReqAttention
NoYesPurchTable.ReqAttention
VendorTransactionSettlementTypeSettlement type: none, open transactions or designated transactions.Enum
PurchSettlementType
SettlementType
  • None 0
  • OpenTransact 1
  • SelectedTransact 2
NoYesPurchTable.SettleVoucher
PurchaseRebateVendorGroupIdVendor rebate group for the order.String (20)
TAMVendRebateGroupId
NoYesTAMVendRebateGroup.VendRebateGroupIdPurchTable.TAMVendRebateGroupId
SalesTaxGroupCodeSales tax group for the order.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupPurchTable.TaxGroup
EUSalesListCodeList code for EU trade reporting, such as triangular trade or production on toll.Enum
ListcodeId
Listcode
  • IncludeNot 0
  • EUTrade 1
  • ProductionOnToll 2
  • TriangularEUTrade 3
  • TriangularProductionOnToll 4
  • PropertyMoving_CZ 50
  • TriangularIntermediateRole_HU 51
  • PurchasedOnBehalf_LV 53
NoYesPurchTable.ListCode
IntrastatStatisticsProcedureCodeIntrastat statistics procedure code.String
IntrastatProcId
NoYesPurchTable.StatProcId
IntrastatPortIdIntrastat port linked to the order.String
IntrastatPortId
NoYesIntrastatPort.PortIdPurchTable.Port
IntrastatTransactionCodeIntrastat transaction code.String
IntrastatTransactionCodeId
NoYesIntrastatTransactionCode.TransactionCodePurchTable.TransactionCode
IntrastatTransportModeCodeIntrastat transport method code.String
IntrastatTransport
NoYesIntrastatTransportMode.TransPortCodePurchTable.Transport
URLInternet address stored on the order.String (255)
URLBase
NoYesPurchTable.URL
TaxExemptNumberTax exempt number.String (20)
VATNumJournal
NoYesPurchTable.VATNum
VendorOrderReferenceVendor's own reference for the order. The label reads 'Customer reference'.String (60)
VendRef
NoYesPurchTable.VendorRef
ConfirmingPurchaseOrderCodeRecIdPoints to the confirming purchase order record.Int64
ConfirmingPORefRecId
NoNo (private)ConfirmingPO.RecIdPurchTable.ConfirmingPO
ConfirmingPurchaseOrderCodeCode that identifies the confirming purchase order text.String (20)
ConfirmingPOID
NoYesConfirmingPO.ConfirmingPOID
ConfirmingPurchaseOrderCodeLanguageIdLanguage of the message.String (7)
LanguageId
NoYesLanguageTable.LanguageIdConfirmingPO.LanguageId
VendorInvoiceDeclarationClassifierRecIdPoints to a vendor invoice declaration, used for Iceland.Int64
InvoiceDeclarationId_IS
NoNo (private)VendInvoiceDeclaration_IS.RecIdPurchTable.VendInvoiceDeclaration_IS
VendorInvoiceDeclarationIdCode that identifies the invoice declaration.String
InvoiceSlipDeclarationId_IS
NoYesVendInvoiceDeclaration_IS.InvoiceDeclarationId
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
ReasonCodeReason code, pointing to the reasons table.String
ReasonCode
NoYesReasonTable.ReasonReasonTableRef.Reason
ReasonCommentShort comment, up to 60 characters, that explains the reason.String (60)
ReasonComment
NoYesReasonTableRef.ReasonComment
DeliveryPostalAddressRecIdA 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
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
IsDeliveryAddressOrderSpecificYes/No flag showing whether the delivery address is a one-time address used only for this order.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
FormattedDeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
DeliveryBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
DeliveryAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryCityInKanaCity name written in Kana; used for Japan.String (60)
AssetCityKana_JP
NoYesLogisticsPostalAddress.CityKana_JP
DeliveryAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
DeliveryAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
DeliveryAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
DeliveryAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
DeliveryAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
DeliveryAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
IsDeliveryAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
DeliveryAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
DeliveryAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
DeliveryAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryStreetInKanaStreet name written in Kana; used for Japan.String (250)
AssetStreetKana_JP
NoYesLogisticsPostalAddress.StreetKana_JP
DeliveryAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
DeliveryValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
DeliveryValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (private)LogisticsPostalAddress.ValidTo
DeliveryAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
DeliveryAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
ExpectedStoreAvailableSalesDateRetail sales date held on the order.low confidenceDate
RetailSalesDate
NoYesPurchTable.AvailSalesDate
ExpectedCrossDockingDateRetail cross docking date for the order.Date
RetailCrossDockingDate
NoYesPurchTable.CrossDockingDate
ExpectedStoreReceiptDateRetail local delivery date.Date
RetailLocalDeliveryDate
NoYesPurchTable.LocalDeliveryDate
ImportDeclarationNumberImport declaration number for GST, used for Malaysia.String (20)
TaxGSTImportDeclarationNo_MY
NoYesPurchTable_W.TaxGSTImportDeclarationNo_MY
ShippingCarrierIdShipping carrier for the purchase order.String (20)
TMSCarrierCode
NoYesTMSCarrier.CarrierCodeTMSPurchTable.CarrierCode
ShippingCarrierServiceGroupIdCarrier group for the purchase order.String (20)
TMSCarrierGroupCode
NoYesTMSCarrierGroup.CarrierGroupCodeTMSPurchTable.CarrierGroupCode
ShippingCarrierServiceIdService of the chosen carrier.String (20)
TMSCarrierServiceCode
NoYesTMSCarrierService.CarrierServiceCodeTMSPurchTable.CarrierServiceCode
TransportationTemplateIdTransportation template used for the order.String (20)
TMSTransportationTemplateId
NoYesTMSTransportationTemplate.TransportationTemplateIdTMSPurchTable.TransportationTemplateId
TransportationModeIdTransportation mode for the order.String (20)
TMSModeCode
NoYesTMSMode.ModeCodeTMSPurchTable.ModeCode
InvoiceTypeType of invoice, such as GST invoice or self-billed invoice, used for Malaysia.Enum
InvoiceType_MY
  • Invoice 0
  • GST 1
  • SelfBilled 2
  • ServiceInvoice 3
NoYesPurchTable_W.InvoiceType_MY
TransportationRoutePlanIdRoute plan used for the order.String (20)
TMSRouteConfigCode
NoYesTMSRouteConfig.RouteConfigCodeTMSPurchTable.RouteConfigCode
OrdererRecIdWorker who placed the order.Int64
PurchPlacer
NoNo (private)HcmWorker.RecIdPurchTable.WorkerPurchPlacer
OrdererPersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
RequesterRecIdWorker who requested the purchase.Int64
PurchRequester
NoNo (private)HcmWorker.RecIdPurchTable.Requester
RequesterPersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
ProjectIdProject that the order is linked to.String (20)
ProjId
NoYesProjTable.ProjIdPurchTable.ProjId
ZakatContractNumberContract number, used for Saudi Arabia.String (60)
VendContractNumZakat_SA
NoYesPurchTable.ContractNum_SA
GSTSelfBilledInvoiceApprovalNumberGST approval number, used for Malaysia.String (20)
TaxGSTApprovalNumber_MY
NoYesPurchTable_W.GSTApprovalNumber_MY
InvoiceAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
InvoiceAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
InvoiceAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
InvoiceAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
InvoiceAddressStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
InvoiceAddressCountyCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
InvoicePostalAddressSystem record ID of the invoice address, used for Thailand. Points to LogisticsPostalAddress.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdPurchTable_W.InvoicePostalAddress_TH
PurchaseOrderHeaderCreationMethodHow the order was created: purchase or consignment.Enum
PurchPurchaseOrderCreationMethod
  • Purchase 0
  • Consignment 1
NoYesPurchTable.PurchaseOrderHeaderCreationMethod
TransportationDocumentLineIdUnique GUID that identifies the record.Guid
SysGuid
NoYesTransportationDocument.LineId
DocumentApprovalStatusApproval state of the order, from draft through review to approved, finalized or confirmed.Enum
VersioningDocumentState
  • Draft 0
  • InReview 10
  • Rejected 20
  • Approved 30
  • InExternalReview 35
  • Finalized 50
  • Confirmed 40
NoYesPurchTable.DocumentState
FormattedInvoiceAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
InvoiceAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber

Foreign keys (49)

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

Email sales@drdynamics.co.uk