Data entity
VendorInvoiceSubLineV2Entity
Links vendor invoice lines to product receipt lines, as in the first version, with one more line number field. Each record holds the product receipt number, the invoice line reference, the purchase order and the purchase quantity.
- Entity name
VendorInvoiceSubLineV2Entity- Public entity name
InvoiceSubLineV2- OData collection
InvoiceSubLinesV2- Category
Document- Module
Accounts payable- Read-only
No- Data management enabled
Yes- Configuration key
LedgerBasic- Keys
ProductReceiptNumber, InvoiceLineReference, PurchaseOrder, InvoiceLineNumber- Staging table
VendorInvoiceSubLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/InvoiceSubLinesV2- Dataverse virtual table
mserp_vendorinvoicesublinev2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
VendInvoiceInfoSubLine· rootVendInvoiceInfoLine· InnerJoin toVendInvoiceInfoSubLine· read-onlyVendInvoiceInfoTable· InnerJoin toVendInvoiceInfoLine· read-only
Fields (6)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ProductReceiptNumberNumber of the linked document. | String (20)Num | Yes | Yes | VendInvoiceInfoSubLine.DocumentId | |
InvoiceLineReferenceLine reference that links the line to its parent vendor invoice record. | String (20)TradeLineRefId | Yes | Yes | VendInvoiceInfoSubTable.TableRefIdVendInvoiceInfoTable.TableRefId | VendInvoiceInfoLine.TableRefId |
PurchaseQuantityQuantity in purchase units. | RealPurchQty | No | Yes | VendInvoiceInfoSubLine.ReceiveNow | |
PurchaseOrderPurchase order that the line comes from. | String (20)PurchIdOrig | Yes | Yes | PurchTable.PurchId | VendInvoiceInfoLine.OrigPurchId |
InvoiceLineNumberLine number on the invoice. | RealLineNum | Yes | Yes | VendInvoiceInfoLine.InvoiceLineNum | |
PurchaseOrderLineNumberLine number of the purchase order line. | Int64TradeLineNumber | Yes | Yes | VendInvoiceInfoLine.PurchaseLineLineNumber |
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.
InvoiceLineReference→VendInvoiceInfoSubTable.TableRefId(key of VendInvoiceInfoSubTable)Join on all of:
InvoiceLineReference=VendInvoiceInfoSubTable.TableRefId,ParmId(table field, not in this entity) =VendInvoiceInfoSubTable.ParmId,PurchaseOrder=VendInvoiceInfoSubTable.OrigPurchIdMany VendInvoiceInfoLine records → exactly one VendInvoiceInfoSubTable record
VendInvoiceInfoSubTable details: see VendorInvoiceLineEntity
InvoiceLineReference→VendInvoiceInfoTable.TableRefId(key of VendInvoiceInfoTable)Join on all of:
InvoiceLineReference=VendInvoiceInfoTable.TableRefId,ParmId(table field, not in this entity) =VendInvoiceInfoTable.ParmIdMany VendInvoiceInfoLine records → exactly one VendInvoiceInfoTable record
VendInvoiceInfoTable details: see VendorInvoiceHeaderEntity, ProjVendInvoiceExportEntityV2, ProjVendInvoiceExportEntity
PurchaseOrder→PurchTable.PurchId(key of PurchTable)Many VendInvoiceInfoLine records → zero or one PurchTable record
PurchTable details: see PurchPurchaseOrderHeaderV2Entity, PurchPurchaseOrderHeaderEntity, ProjSubContractPurchaseOrderHeaderEntity
Need help with VendorInvoiceSubLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.