Data entity
PurchApprovalAttachedLineEntity
Read-only entity with purchase order lines that belong to an approval work item. It is keyed by legal entity, purchase order number and line number. It shows item, vendor, quantity, price, discount, net amount and the approval user.
- Entity name
PurchApprovalAttachedLineEntity- Public entity name
PurchaseOrderApprovalAttachedLine- OData collection
PurchaseOrderApprovalAttachedLines- Category
Document- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
No- Configuration key
LogisticsBasic- Keys
LegalEntity, PurchaseOrderNumber, LineNumber- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchaseOrderApprovalAttachedLines- Dataverse virtual table
mserp_purchapprovalattachedlineentity. 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-onlyPurchTable· InnerJoin toPurchLine· read-onlyWorkflowWorkItemTable· InnerJoin toPurchTable· read-only
Fields (16)
| 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 |
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 |
OrderedPurchaseQuantityQuantity ordered, in the purchase unit. | RealPurchOrderedQty | No | Yes | PurchLine.PurchQty | |
CurrencyCodeCurrency of the line. It points to a currency record. | String (3)VendCurrencyCode | Yes | Yes | Currency.CurrencyCode | PurchLine.CurrencyCode |
RequestedDeliveryDateReceipt date requested for the goods on this line. | DatePurchLineRequestedReceiptDate | No | Yes | PurchLine.DeliveryDate | |
PurchasePricePrice for one price unit of the item. | RealPurchPrice | No | Yes | PurchLine.PurchPrice | |
PurchasePriceQuantityNumber of units that the unit price applies to. | RealPriceUnit | No | Yes | PurchLine.PriceUnit | |
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 | |
PurchaseUnitSymbolUnit of measure used for the purchase quantity. | StringPurchUnit | No | Yes | UnitOfMeasure.Symbol | PurchLine.PurchUnit |
LineNumberNumber of the line within the purchase order. | Int64TradeLineNumber | No | Yes | PurchLine.LineNumber | |
LegalEntityThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | PurchLine.DataAreaId | |
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 | |
ApprovalUserThe user the work item is assigned to. | StringWorkflowUser | No | Yes | WorkflowWorkItemTable.UserId |
Foreign keys (5)
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
CurrencyCode→Currency.CurrencyCode(key of Currency)Many PurchLine records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
PurchaseUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PurchLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
Need help with PurchApprovalAttachedLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.