Data entity
PurchApprovalLineEntity
Read-only entity with purchase order lines for approval. It is keyed by purchase order, line number, legal entity and work item record ID. It shows item, quantity, price, discount, net amount, product category and workflow task details.
- Entity name
PurchApprovalLineEntity- Public entity name
PurchaseOrderApprovalLine- OData collection
PurchaseOrderApprovalLines- Category
Document- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
No- Configuration key
LogisticsBasic- Keys
PurchaseOrderNumber, LineNumber, LegalEntity, WorkItemRecId- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchaseOrderApprovalLines- Dataverse virtual table
mserp_purchapprovallineentity. 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
PurchLine· root · read-onlyWorkflowWorkItemTable· InnerJoin toPurchLine· read-onlyEcoResCategory· OuterJoin toPurchLine· read-onlyEcoResCategory_PCClass(tablePCClass) · Derived toEcoResCategory
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PurchaseOrderNumberNumber of the purchase order that the line belongs to. It points to the purchase order header. | String (20)PurchIdBase | Yes | Yes | PurchTable.PurchId | PurchLine.PurchId |
LineNumberNumber of the line within the purchase order. | Int64TradeLineNumber | No | Yes | PurchLine.LineNumber | |
ItemNumberNumber of the item being purchased. It points to an item record. | String (20)ItemIdSmall | No | Yes | InventTable.ItemId | PurchLine.ItemId |
VendorAccountNumberAccount number of the vendor. It points to a vendor record. | String (20)VendAccount | Yes | Yes | VendTable.AccountNum | PurchLine.VendAccount |
RequestedDeliveryDateReceipt date requested for the goods on this line. | DatePurchLineRequestedReceiptDate | No | Yes | PurchLine.DeliveryDate | |
OrderedPurchaseQuantityQuantity ordered, in the purchase unit. | RealPurchOrderedQty | No | Yes | PurchLine.PurchQty | |
PurchasePricePrice for one price unit of the item. | RealPurchPrice | No | Yes | PurchLine.PurchPrice | |
LineAmountNet amount of the line. | RealPurchLineAmount | No | Yes | PurchLine.LineAmount | |
LineDiscountAmountDiscount value on the line. | RealPurchLineDisc | No | Yes | PurchLine.LineDisc | |
LineDiscountPercentageLine discount, as a percentage. | RealPurchLinePercent | No | Yes | PurchLine.LinePercent | |
PurchasePriceQuantityNumber of units that the unit price applies to. | RealPriceUnit | No | Yes | PurchLine.PriceUnit | |
PurchaseUnitSymbolUnit of measure used for the purchase quantity. | StringPurchUnit | No | Yes | UnitOfMeasure.Symbol | PurchLine.PurchUnit |
CurrencyCodeCurrency of the line. It points to a currency record. | String (3)VendCurrencyCode | Yes | Yes | Currency.CurrencyCode | PurchLine.CurrencyCode |
ProcurementProductCategoryNameName of the category. | String (254)EcoResCategoryName | Yes | Yes | EcoResCategory.Name | |
LegalEntityThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | PurchLine.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 (6)
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.
PurchaseOrderNumber→PurchTable.PurchId(key of PurchTable)Many PurchLine records → exactly one PurchTable record
PurchTable details: see PurchPurchaseOrderHeaderV2Entity, PurchPurchaseOrderHeaderEntity, ProjSubContractPurchaseOrderHeaderEntity
ItemNumber→InventTable.ItemId(key of InventTable)Many PurchLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
VendorAccountNumber→VendTable.AccountNum(key of VendTable)Many PurchLine records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
PurchaseUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PurchLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many PurchLine 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 PurchApprovalLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.