Data entity

PurchPurchaseOrderHeaderAIEntity

Read-only view of purchase order headers, intended for AI use with vendor invoices. It shows the vendor, invoice account, currency, statuses, purchase type and dates. It also has one-time supplier details. It is keyed by purchase order number.

Entity name
PurchPurchaseOrderHeaderAIEntity
Public entity name
PurchaseOrderHeaderAI
OData collection
PurchaseOrderHeaderAIs
Category
Not set
Module
Other (no module in the metadata)
Read-only
Yes
Data management enabled
No
Configuration key
None
Keys
PurchId
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PurchaseOrderHeaderAIs
Dataverse virtual table
mserp_purchpurchaseorderheaderaientity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • PurchTable · root

Fields (14)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
OrderAccountAccount number of the vendor the order is placed with.String (20)
VendAccount
YesYesVendTable.AccountNumPurchTable.OrderAccount
CurrencyCodeCurrency code of the order.String (3)
VendCurrencyCode
YesYesCurrency.CurrencyCodePurchTable.CurrencyCode
DocumentStateApproval 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
DocumentStatusLatest document type linked to the order, such as purchase order, confirmation, packing slip or invoice.Enum
DocumentStatus
  • None 0
  • Quotation 1
  • PurchaseOrder 2
  • Confirmation 3
  • PickingList 4
  • PackingSlip 5
  • ReceiptsList 6
  • Invoice 7
  • ApproveJournal 8
  • ProjectInvoice 9
  • ProjectPackingSlip 10
  • CRMQuotation 11
  • Lost 12
  • Cancelled 13
  • FreeTextInvoice 14
  • RFQ 15
  • RFQAccept 16
  • RFQReject 17
  • PurchReq 18
  • RFQReSend 19
  • ConfirmationRequest 30
  • InvoiceRegistration_IN 219
  • BillOfEntry_IN 220
  • ShippingBill_IN 221
  • Invoice4Paym_RU 101
  • Facture_RU 102
  • FreeTextInvoice4Paym_RU 105
  • DeliverySlip_BR 150
  • PlSAD 103
  • DeliverySlipProject_BR 222
  • Note
  • ProjectPickingList
  • ITMGoodsInTransitReceive
  • RentalInvoiceScheduleProforma 88
  • RevRecRevenueCancelation
  • RevRecDeferredRevenueInvoice
NoYesPurchTable.DocumentStatus
EnterpriseNumberEnterprise number used for tax purposes.String (50)
TaxEnterpriseNumber
NoYesPurchTable.EnterpriseNumber
InvoiceAccountVendor account to which the invoice is addressed.String (20)
VendInvoiceAccount
YesYesVendTable.AccountNumPurchTable.InvoiceAccount
OneTimeSupplierYes or No value showing whether the supplier is a one-time supplier.Enum
OneTimeSupplier
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchTable.OneTimeSupplier
OneTimeVendorYes 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
PurchaseTypeType of order: journal, purchase order or returned order.Enum
PurchaseType
  • Journal 0
  • Purch 3
  • ReturnItem 4
NoYesPurchTable.PurchaseType
PurchIdPurchase order number. It identifies the order.String (20)
PurchIdBase
YesYesPurchTable.PurchId
PurchNameName of the vendor.String (60)
PurchName
NoYesPurchTable.PurchName
PurchStatusOrder status: open, received, invoiced or cancelled.Enum
PurchStatus
  • None 0
  • Backorder 1
  • Received 2
  • Invoiced 3
  • Canceled 4
NoYesPurchTable.PurchStatus
DeliveryDateReceipt date requested for the order.Date
PurchTableRequestedReceiptDate
NoYesPurchTable.DeliveryDate
AccountingDateAccounting date set on the order.Date
AccountingDate
NoYesPurchTable.AccountingDate

Foreign keys (3)

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

Email sales@drdynamics.co.uk