Data entity
VendInvoiceApprovalAttachedLineEntity
Read-only vendor invoice lines attached to an invoice that is in approval. It is keyed by legal entity, header reference and line number. Each line has the item number, unit, unit price, net amount and currency. It also shows the approval user and the work item record ID.
- Entity name
VendInvoiceApprovalAttachedLineEntity- Public entity name
VendInvoiceApprovalAttachedLine- OData collection
VendInvoiceApprovalAttachedLines- Category
Document- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
No- Configuration key
LogisticsBasic- Keys
LegalEntity, HeaderReference, LineNumber- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/VendInvoiceApprovalAttachedLines- Dataverse virtual table
mserp_vendinvoiceapprovalattachedlineentity. 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
VendInvoiceInfoLine· rootVendInvoiceInfoTable· InnerJoin toVendInvoiceInfoLineWorkflowWorkItemTable· InnerJoin toVendInvoiceInfoTable· read-only
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
InvoiceNumberInvoice number given by the vendor. | String (50)VendInvoiceId | No | Yes | VendInvoiceInfoTable.Num | |
LegalEntityThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | VendInvoiceInfoLine.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 | |
HeaderReferenceLine reference that links the line to its parent vendor invoice record. | String (20)TradeLineRefId | Yes | Yes | VendInvoiceInfoSubTable.TableRefIdVendInvoiceInfoTable.TableRefId | VendInvoiceInfoLine.TableRefId |
ItemNumberItem on the line. | String (20)ItemId | No | Yes | InventTable.ItemId | VendInvoiceInfoLine.ItemId |
UnitPriceUnit price of the item. | RealPurchPrice | No | Yes | VendInvoiceInfoLine.PurchPrice | |
UnitUnit of measure used for purchasing. | StringPurchUnit | No | Yes | UnitOfMeasure.Symbol | VendInvoiceInfoLine.PurchUnit |
QtyQuantity to be updated, in purchase unit. | RealPurchQty | No | Yes | VendInvoiceInfoLine.ReceiveNow | |
LineNetAmountNet amount of the line, in the line currency. | RealAmountCur | No | Yes | VendInvoiceInfoLine.LineAmount | |
LineNumberNumber of the line. | RealLineNum | No | Yes | VendInvoiceInfoLine.LineNum | |
CurrencyCodeCurrency of the line. | String (3)VendCurrencyCode | No | Yes | Currency.CurrencyCode | VendInvoiceInfoLine.currencyCode |
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.
HeaderReference→VendInvoiceInfoSubTable.TableRefId(key of VendInvoiceInfoSubTable)Join on all of:
HeaderReference=VendInvoiceInfoSubTable.TableRefId,ParmId(table field, not in this entity) =VendInvoiceInfoSubTable.ParmId,OrigPurchId(table field, not in this entity) =VendInvoiceInfoSubTable.OrigPurchIdMany VendInvoiceInfoLine records → exactly one VendInvoiceInfoSubTable record
VendInvoiceInfoSubTable details: see VendorInvoiceLineEntity
HeaderReference→VendInvoiceInfoTable.TableRefId(key of VendInvoiceInfoTable)Join on all of:
HeaderReference=VendInvoiceInfoTable.TableRefId,ParmId(table field, not in this entity) =VendInvoiceInfoTable.ParmIdMany VendInvoiceInfoLine records → exactly one VendInvoiceInfoTable record
VendInvoiceInfoTable details: see VendorInvoiceHeaderEntity, ProjVendInvoiceExportEntityV2, ProjVendInvoiceExportEntity
ItemNumber→InventTable.ItemId(key of InventTable)Many VendInvoiceInfoLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
Unit→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many VendInvoiceInfoLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many VendInvoiceInfoLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
Need help with VendInvoiceApprovalAttachedLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.