Data entity
SalesInvoiceLineV2Entity
Read-only list of sales invoice lines, version 2. It is keyed by invoice number, line creation sequence number, invoice date and voucher. It adds category and product configuration class data to the product, sales order and inventory dimension details. It shows quantity, unit price, amount, and line tax and discount values.
- Entity name
SalesInvoiceLineV2Entity- Public entity name
SalesInvoiceV2Line- OData collection
SalesInvoiceV2Lines- Category
Document- Module
Accounts receivable- Read-only
Yes- Data management enabled
Yes- Configuration key
LogisticsBasic- Keys
InvoiceNumber, LineCreationSequenceNumber, InvoiceDate, LedgerVoucher- Staging table
SalesInvoiceLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesInvoiceV2Lines- Dataverse virtual table
mserp_salesinvoicelinev2entity. 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
CustInvoiceTrans· rootCustInvoiceJour· InnerJoin toCustInvoiceTransSalesTable· OuterJoin toCustInvoiceJourInventDim· OuterJoin toCustInvoiceTransInventDistinctProduct· OuterJoin toInventDimEcoResDistinctProduct· OuterJoin toInventDistinctProductEcoResProductSystemLanguage· OuterJoin toEcoResDistinctProductEcoResProductTranslation· OuterJoin toEcoResDistinctProductInventTable· OuterJoin toEcoResDistinctProductEcoResProductMaster· OuterJoin toInventTableEcoResProductTranslationMaster(tableEcoResProductTranslation) · OuterJoin toInventTableEcoResDistinctProduct_EcoResDistinctProductVariant(tableEcoResDistinctProductVariant) · Derived toEcoResDistinctProductCustInvoiceTransTotalChargeAmountView· OuterJoin toCustInvoiceTransCustInvoiceTransLineChargesTaxAmountView· OuterJoin toCustInvoiceTransCustInvoiceTransLineTaxAmountView· OuterJoin toCustInvoiceTransEcoResCategory· OuterJoin toCustInvoiceTrans· read-onlySalesProductCategoryHierarchy(tableEcoResCategoryHierarchy) · OuterJoin toEcoResCategory· read-onlyPCClass· Derived toEcoResCategory
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
InvoicedQuantityInvoiced quantity. | RealSalesInvoicedQty | No | Yes | CustInvoiceTrans.Qty | |
SalesPricePrice per unit. | RealSalesPrice | No | Yes | CustInvoiceTrans.SalesPrice | |
ProductDescriptionFree-text description of the line. | String (1000)ItemFreeTxtBase | No | Yes | CustInvoiceTrans.Name | |
InvoiceNumberInvoice number; links the line to the invoice journal. | String (20)CustInvoiceId | Yes | Yes | CustInvoiceTrans.InvoiceId | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | Yes | CustInvoiceTrans.InvoiceDate | |
CurrencyCodeCurrency of the invoice line. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | CustInvoiceTrans.CurrencyCode |
SalesUnitSymbolUnit of measure used for sales. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | CustInvoiceTrans.SalesUnit |
ConfirmedShippingDateConfirmed ship date. | DateSalesShippingDateConfirmed | No | Yes | SalesTable.ShippingDateConfirmed | |
LineTotalDiscountAmountTotal discount amount for the invoice line. | RealSalesLineDisc | No | Yes | computed | |
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | Yes | Yes | EcoResProduct.DisplayProductNumber | |
LineCreationSequenceNumberNumber showing the order in which lines were created. | IntegerCustInvoiceLineCreationSequenceNumber | No | Yes | CustInvoiceTrans.LineCreationSequenceNumber | |
LineTotalTaxAmountTotal sales tax amount for the invoice line. The metadata gives no label. | Real | No | Yes | computed | |
LineTotalChargeAmountCharge amount in the transaction currency. | RealAmountCur | No | Yes | MarkupTrans.CalculatedAmount | |
LineAmountLine amount in the transaction currency. | RealAmountCur | No | Yes | CustInvoiceTrans.LineAmount | |
ProductNameName of the product on the invoice line. | String (60)EcoResProductName | No | Yes | computed | |
InventorySiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
InventoryWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
ItemBatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
OrderedInventoryStatusIdInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
DimensionNumberPoints to the inventory dimensions of the line. | String (20)InventDimId | No | Yes | InventDim.inventDimId | CustInvoiceTrans.InventDimId |
LedgerVoucherVoucher number linked to the invoice. | String (20)Voucher | No | Yes | CustInvoiceJour.LedgerVoucher | |
SalesProductCategoryNameName of the category. | String (254)EcoResCategoryName | No | Yes | EcoResCategory.Name | |
SalesProductCategoryHierarchyNameName of the category hierarchy. | String (128)EcoResCategoryHierarchyName | No | Yes | EcoResCategoryHierarchy.Name |
Foreign keys (11)
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.
CurrencyCode→Currency.CurrencyCode(key of Currency)Many CustInvoiceTrans records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
SalesUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many CustInvoiceTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
InventorySiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
InventoryWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
OrderedInventoryStatusId→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
DimensionNumber→InventDim.inventDimId(key of InventDim)Many CustInvoiceTrans records → zero or one InventDim record
InventDim details: see ProdProductionPickingListJournalEntryEntity, ProdReportAsFinishedProductionJournalEntryEntity, WHSExternalInventoryAdjustmentEntity
Need help with SalesInvoiceLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.