Data entity
PurchApprovalHeaderEntity
Read-only entity with purchase orders waiting for approval. It is keyed by purchase order number, legal entity and work item record ID. It shows vendor, currency, approval user, task, type and instruction from the workflow work item.
- Entity name
PurchApprovalHeaderEntity- Public entity name
PurchaseOrderApprovalHeader- OData collection
PurchaseOrderApprovalHeaders- Category
Document- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
No- Configuration key
LogisticsBasic- Keys
PurchaseOrderNumber, LegalEntity, WorkItemRecId- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchaseOrderApprovalHeaders- Dataverse virtual table
mserp_purchapprovalheaderentity. 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 · read-onlyWorkflowWorkItemTable· InnerJoin toPurchTable· read-only
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PurchaseOrderNumberPurchase order number. It identifies the order. | String (20)PurchIdBase | Yes | Yes | PurchTable.PurchId | |
PurchaseOrderNameName of the vendor. | String (60)PurchName | No | Yes | PurchTable.PurchName | |
OrderVendorAccountNumberAccount 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 |
LegalEntityThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | PurchTable.DataAreaId | |
ApprovalUserThe user the work item is assigned to. | StringWorkflowUser | No | Yes | WorkflowWorkItemTable.UserId | |
WorkItemRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | WorkflowWorkItemTable.RecId | |
WorkflowElementIdThe workflow task element this work item belongs to. | GuidWorkflowElementId | No | Yes | WorkflowElementTable.ElementId | WorkflowWorkItemTable.ElementId |
WorkItemTypeKind of work item, such as work item, return or escalation. | Enum
| No | Yes | WorkflowWorkItemTable.Type | |
DescriptionInstructions for the person who handles the work item. | String (-1)WorkflowStepInstruction | No | Yes | WorkflowWorkItemTable.Description |
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.
OrderVendorAccountNumber→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
WorkflowElementId→WorkflowElementTable.ElementId(key of WorkflowElementTable)Many WorkflowWorkItemTable records → zero or one WorkflowElementTable record
Not exposed by a public entity.
Need help with PurchApprovalHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.