Data entity
SalesExternallyMaintainedCustomerSalesInvoiceHeaderEntity
Read-only list of customer sales invoice headers for externally maintained use. It is built on the sales invoice header V2 entity. Each record is keyed by invoice number, invoice date and voucher. It shows the invoice account, amounts, taxes, discounts, delivery details, address and sales origin type.
- Entity name
SalesExternallyMaintainedCustomerSalesInvoiceHeaderEntity- Public entity name
ExternallyMaintainedCustomerSalesInvoiceHeader- OData collection
ExternallyMaintainedCustomerSalesInvoiceHeaders- Category
Document- Module
Accounts receivable- Read-only
Yes- Data management enabled
Yes- Configuration key
CDSIntegration- Keys
InvoiceNumber, InvoiceDate, LedgerVoucher- Staging table
SalesExternallyMaintainedCustomerSalesInvoiceHeaderStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ExternallyMaintainedCustomerSalesInvoiceHeaders- Dataverse virtual table
mserp_salesexternallymaintainedcustomersalesinvoiceheaderentity. 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
SalesInvoiceHeaderV2Entity· root · read-onlyCustTable· InnerJoin toSalesInvoiceHeaderV2Entity· read-onlySalesOrderOriginEntity· OuterJoin toSalesInvoiceHeaderV2Entity· read-only
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ContactPersonIdContact person for the order, linked to the contacts. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | SalesTable.ContactPersonId |
CurrencyCodeCurrency of the invoice. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | CustInvoiceJour.CurrencyCode |
CustomersOrderReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | SalesTable.CustomerRef | |
DeliveryModeCodeMode of delivery for the order. | StringCustDlvModeId | No | Yes | DlvMode.Code | SalesTable.DlvMode |
DeliveryTermsCodeTerms of delivery for the order. | StringCustDlvTermId | No | Yes | DlvTerm.Code | SalesTable.DlvTerm |
InvoiceAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
InvoiceAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
InvoiceAddressCountryRegionISOCodeISO code of the country or region of the address. | String (2)LogisticsAddressCountryRegionISOCode | No | Yes | None | |
InvoiceAddressStateState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressCounty.StateIdLogisticsAddressState.StateId | LogisticsPostalAddress.State |
InvoiceAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
InvoiceAddressStreetNumberStreet or house number. | String (20)LogisticsAddressStreetNumber | No | Yes | LogisticsPostalAddress.StreetNumber | |
InvoiceAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
InvoiceCustomerAccountNumberCustomer account that receives the invoice. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | CustInvoiceJour.InvoiceAccount |
InvoiceDateDate of the invoice. | DateTransDate | No | Yes | CustInvoiceJour.InvoiceDate | |
InvoiceNumberIdentifier of the customer invoice. | String (20)CustInvoiceId | No | Yes | CustInvoiceJour.InvoiceId | |
PaymentTermsNameTerms of payment for the order. | String (100)CustPaymTermId | No | Yes | PaymTerm.PaymTermId | SalesTable.Payment |
SalesOrderNumberSales order number that identifies the order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | |
SalesOrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
TotalChargeAmountTotal charges on the invoice, in invoice currency. | RealMarkupSumSales | No | Yes | CustInvoiceJour.SumMarkup | |
TotalDiscountAmountTotal discount amount on the invoice. | Real | No | Yes | None | |
TotalDiscountCustomerGroupCodeTotal discount amount at order header level, in invoice currency. | RealSalesEndDiscAmount | No | Yes | CustInvoiceJour.EndDisc | |
TotalInvoiceAmountTotal invoice amount in invoice currency. | RealAmountCur | No | Yes | CustInvoiceJour.InvoiceAmount | |
TotalTaxAmountSales tax amount, in invoice currency. | RealTaxAmountCur | No | Yes | CustInvoiceJour.SumTax | |
InvoiceHeaderTaxAmountSales tax amount of the invoice, in the invoice currency. | RealTaxAmountCur | No | Yes | None | |
SalesOrderOriginTypeInternal type of the origin: not specified, sales order integration or work order integration. | Enum
| No | Yes | SalesOriginInternalType.OriginType | |
LedgerVoucherVoucher number linked to the invoice. | String (20)Voucher | No | Yes | CustInvoiceJour.LedgerVoucher |
Foreign keys (9)
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.
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many SalesTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many CustInvoiceJour records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DeliveryModeCode→DlvMode.Code(key of DlvMode)Many SalesTable records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
DeliveryTermsCode→DlvTerm.Code(key of DlvTerm)Many SalesTable records → zero or one DlvTerm record
DlvTerm details: see DeliveryTermsEntity, VRMDeliveryTermsEntity
InvoiceAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
InvoiceAddressState→LogisticsAddressCounty.StateId(key of LogisticsAddressCounty)Join on all of:
InvoiceAddressState=LogisticsAddressCounty.StateId,InvoiceAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,County(table field, not in this entity) =LogisticsAddressCounty.CountyIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
InvoiceAddressState→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
InvoiceAddressState=LogisticsAddressState.StateId,InvoiceAddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many CustInvoiceJour records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
PaymentTermsName→PaymTerm.PaymTermId(key of PaymTerm)Many SalesTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
Need help with SalesExternallyMaintainedCustomerSalesInvoiceHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.