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 · root
  • VendInvoiceInfoLine · InnerJoin to VendInvoiceInfoSubLine · read-only
  • VendInvoiceInfoTable · InnerJoin to VendInvoiceInfoLine · read-only

Fields (6)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ProductReceiptNumberNumber of the linked document.String (20)
Num
YesYesVendInvoiceInfoSubLine.DocumentId
InvoiceLineReferenceLine reference that links the line to its parent vendor invoice record.String (20)
TradeLineRefId
YesYesVendInvoiceInfoSubTable.TableRefIdVendInvoiceInfoTable.TableRefIdVendInvoiceInfoLine.TableRefId
PurchaseQuantityQuantity in purchase units.Real
PurchQty
NoYesVendInvoiceInfoSubLine.ReceiveNow
PurchaseOrderPurchase order that the line comes from.String (20)
PurchIdOrig
YesYesPurchTable.PurchIdVendInvoiceInfoLine.OrigPurchId
InvoiceLineNumberLine number on the invoice.Real
LineNum
YesYesVendInvoiceInfoLine.InvoiceLineNum
PurchaseOrderLineNumberLine number of the purchase order line.Int64
TradeLineNumber
YesYesVendInvoiceInfoLine.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.OrigPurchId

    Many 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.ParmId

    Many 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.

Email sales@drdynamics.co.uk