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-only
  • WorkflowWorkItemTable · InnerJoin to PurchTable · read-only

Fields (10)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
PurchaseOrderNumberPurchase order number. It identifies the order.String (20)
PurchIdBase
YesYesPurchTable.PurchId
PurchaseOrderNameName of the vendor.String (60)
PurchName
NoYesPurchTable.PurchName
OrderVendorAccountNumberAccount 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
LegalEntityThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesPurchTable.DataAreaId
ApprovalUserThe user the work item is assigned to.String
WorkflowUser
NoYesWorkflowWorkItemTable.UserId
WorkItemRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesWorkflowWorkItemTable.RecId
WorkflowElementIdThe workflow task element this work item belongs to.Guid
WorkflowElementId
NoYesWorkflowElementTable.ElementIdWorkflowWorkItemTable.ElementId
WorkItemTypeKind of work item, such as work item, return or escalation.Enum
WorkflowWorkItemType
  • WorkItem 0
  • RequestChange 1
  • Return 2
  • Escalated 3
  • FinalApprover 4
  • Recall 5
NoYesWorkflowWorkItemTable.Type
DescriptionInstructions for the person who handles the work item.String (-1)
WorkflowStepInstruction
NoYesWorkflowWorkItemTable.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.

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

Email sales@drdynamics.co.uk