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 description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
OrderAccountAccount number of the vendor the order is placed with. | String (20)VendAccount | Yes | Yes | VendTable.AccountNum | PurchTable.OrderAccount |
CurrencyCodeCurrency code of the order. | String (3)VendCurrencyCode | Yes | Yes | Currency.CurrencyCode | PurchTable.CurrencyCode |
DocumentStateApproval state of the order, from draft through review to approved, finalized or confirmed. | Enum
| No | Yes | PurchTable.DocumentState | |
DocumentStatusLatest document type linked to the order, such as purchase order, confirmation, packing slip or invoice. | Enum
| No | Yes | PurchTable.DocumentStatus | |
EnterpriseNumberEnterprise number used for tax purposes. | String (50)TaxEnterpriseNumber | No | Yes | PurchTable.EnterpriseNumber | |
InvoiceAccountVendor account to which the invoice is addressed. | String (20)VendInvoiceAccount | Yes | Yes | VendTable.AccountNum | PurchTable.InvoiceAccount |
OneTimeSupplierYes or No value showing whether the supplier is a one-time supplier. | EnumOneTimeSupplier
| No | Yes | PurchTable.OneTimeSupplier | |
OneTimeVendorYes or No value showing whether the vendor is a one-time supplier. | EnumOneTimeSupplier
| No | Yes | PurchTable.OneTimeVendor | |
PurchaseTypeType of order: journal, purchase order or returned order. | Enum
| No | Yes | PurchTable.PurchaseType | |
PurchIdPurchase order number. It identifies the order. | String (20)PurchIdBase | Yes | Yes | PurchTable.PurchId | |
PurchNameName of the vendor. | String (60)PurchName | No | Yes | PurchTable.PurchName | |
PurchStatusOrder status: open, received, invoiced or cancelled. | Enum
| No | Yes | PurchTable.PurchStatus | |
DeliveryDateReceipt date requested for the order. | DatePurchTableRequestedReceiptDate | No | Yes | PurchTable.DeliveryDate | |
AccountingDateAccounting date set on the order. | DateAccountingDate | No | Yes | PurchTable.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.
OrderAccount→VendTable.AccountNum(key of VendTable)Many PurchTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many PurchTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
InvoiceAccount→VendTable.AccountNum(key of VendTable)Many PurchTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
Need help with PurchPurchaseOrderHeaderAIEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.