Data entity

SalesInvoiceHeaderV2Entity

Read-only entity of sales invoice headers, based on the customer invoice journal. Each record is one posted invoice, identified by invoice number, invoice date and voucher. It shows the invoice amount, currency, tax and discount totals, linked sales order, invoice account and address. It also shows the worker linked to the invoice.

Entity name
SalesInvoiceHeaderV2Entity
Public entity name
SalesInvoiceHeaderV2
OData collection
SalesInvoiceHeadersV2
Category
Document
Module
Accounts receivable
Read-only
Yes
Data management enabled
Yes
Configuration key
LogisticsBasic
Keys
InvoiceNumber, InvoiceDate, LedgerVoucher
Staging table
SalesInvoiceHeaderV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesInvoiceHeadersV2
Dataverse virtual table
mserp_salesinvoiceheaderv2entity. 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

  • CustInvoiceJour · root · read-only
  • SalesTable · OuterJoin to CustInvoiceJour
  • HcmWorker · OuterJoin to SalesTable
  • LogisticsPostalAddressBaseEntity · OuterJoin to CustInvoiceJour
  • CustInvoiceJourTotalTaxAmountView · OuterJoin to CustInvoiceJour

Fields (27)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
InvoiceNumberIdentifier of the customer invoice.String (20)
CustInvoiceId
NoYesCustInvoiceJour.InvoiceId
InvoiceDateDate of the invoice.Date
TransDate
YesYesCustInvoiceJour.InvoiceDate
ContactPersonIdContact person for the order, linked to the contacts.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdSalesTable.ContactPersonId
CustomersOrderReferenceReference text supplied by the customer.String (60)
CustRef
NoYesSalesTable.CustomerRef
DeliveryModeCodeMode of delivery for the order.String
CustDlvModeId
NoYesDlvMode.CodeSalesTable.DlvMode
DeliveryTermsCodeTerms of delivery for the order.String
CustDlvTermId
NoYesDlvTerm.CodeSalesTable.DlvTerm
PaymentTermsNameTerms of payment for the order.String (100)
CustPaymTermId
NoYesPaymTerm.PaymTermIdSalesTable.Payment
TotalInvoiceAmountTotal invoice amount in invoice currency.Real
AmountCur
NoYesCustInvoiceJour.InvoiceAmount
CurrencyCodeCurrency of the invoice.String (3)
CustCurrencyCode
YesYesCurrency.CurrencyCodeCustInvoiceJour.CurrencyCode
InvoiceHeaderTaxAmountSales tax amount of the invoice, in the invoice currency.Real
TaxAmountCur
NoYescomputed in view
TotalTaxAmountSales tax amount, in invoice currency.Real
TaxAmountCur
NoYesCustInvoiceJour.SumTax
TotalChargeAmountTotal charges on the invoice, in invoice currency.Real
MarkupSumSales
NoYesCustInvoiceJour.SumMarkup
TotalDiscountCustomerGroupCodeTotal discount amount at order header level, in invoice currency.Real
SalesEndDiscAmount
NoYesCustInvoiceJour.EndDisc
InvoiceCustomerAccountNumberCustomer account that receives the invoice.String (20)
CustInvoiceAccount
YesYesCustTable.AccountNumCustInvoiceJour.InvoiceAccount
SalesOrderNumberSales order number that identifies the order.String (20)
SalesIdBase
YesYesSalesTable.SalesId
InvoiceAddressStateState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
InvoiceAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
InvoiceAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
InvoiceAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
InvoiceAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
InvoiceAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
InvoiceAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
SalesOrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
TotalDiscountAmountTotal discount amount on the invoice.RealNoYescomputed
SalesOrderOriginCodeOrder origin code showing where the order came from.String
SalesOriginId
NoYesSalesOrigin.OriginIdSalesTable.SalesOriginId
LedgerVoucherVoucher number linked to the invoice.String (20)
Voucher
NoYesCustInvoiceJour.LedgerVoucher
InvoiceAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesLogisticsPostalAddress.RecId

Foreign keys (10)

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.

Need help with SalesInvoiceHeaderV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk