Data entity
FreeTextInvoiceHeaderCDSEntity
Holds customer free text invoice headers for Dataverse integration. It joins the free text invoice header with the invoice origin. Records are identified by the external invoice number. It includes customer, currency, payment terms, tax group and posting status.
- Entity name
FreeTextInvoiceHeaderCDSEntity- Public entity name
CDSFreeTextInvoiceHeader- OData collection
CDSFreeTextInvoiceHeaders- Category
Document- Module
Accounts receivable- Read-only
No- Data management enabled
Yes- Configuration key
CDSIntegration- Keys
ExternalInvoiceId- Staging table
FreeTextInvoiceHeaderCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSFreeTextInvoiceHeaders- Dataverse virtual table
mserp_freetextinvoiceheadercdsentity. 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
FreeTextInvoiceHeaderEntity· rootCustomerInvoiceOriginEntity· OuterJoin toFreeTextInvoiceHeaderEntity· read-only
Fields (30)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ExternalInvoiceIdInvoice number from an external source. | String (60)CustomerExternalInvoiceId | Yes | Yes | CustInvoiceTable.ExternalInvoiceId | |
CashDiscountCodeCash discount code that applies to the invoice. | StringCustCashDiscCode | No | Yes | CashDisc.CashDiscCode | CustInvoiceTable.CashDiscCode |
CashDiscountDateLast date on which the cash discount can be taken. | DateCustCashDiscDate | No | Yes | CustInvoiceTable.CashDiscDate | |
ComplimentedInvoiceIdInvoice that this invoice complements. | String (50)InvoiceId | No | Yes | CustInvoiceTable.ComplementedInvoiceId | |
ContactPersonIdContact person recorded for the invoice. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | CustInvoiceTable.ContactPersonId |
CurrencyCodeCurrency of the invoice. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | CustInvoiceTable.CurrencyCode |
CustomerAccountCustomer account the invoice is for. It points to a customer record. | String (20)CustAccount | No | Yes | CustTable.AccountNum | CustInvoiceTable.OrderAccount |
CustomerGroupCustomer group of the customer. | StringCustGroupId | No | Yes | CustGroup.CustGroup | CustInvoiceTable.CustGroup |
CustomerReferenceReference text supplied by the customer. | String (60)CustRef | No | Yes | CustInvoiceTable.CustomerRef | |
CustomerRequisitionCustomer requisition number. | String (20)CustPurchaseOrder | No | Yes | CustInvoiceTable.PurchOrderFormNum | |
DocumentDateDate shown on the source document. | DateDocumentDate | No | Yes | CustInvoiceTable.DocumentDate | |
DueDateDate on which payment is due. | DateDueDate | No | Yes | CustInvoiceTable.DueDate | |
FreeTextNumberThe free text invoice number shown to users. It is a text value. | String (20) | No | Yes | None | |
GiroTypeType of payment slip attached to the invoice, such as FIK, BBS or a coloured slip. | EnumPaymentStubInvoiceId
| No | Yes | CustInvoiceTable.GiroType | |
InclTaxShows whether prices include sales tax. | EnumInclTax
| No | Yes | CustInvoiceTable.InclTax | |
InvoiceAccountCustomer account that is invoiced. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | CustInvoiceTable.InvoiceAccount |
InvoiceDateDate of the invoice. | DateTransDate | No | Yes | CustInvoiceTable.InvoiceDate | |
InvoiceIdInvoice number. It relates to the customer invoice journal. | String (20)CustInvoiceId | No | No (private) | CustInvoiceTable.InvoiceId | |
InvoiceNameName printed on the invoice. | String (100)LogisticsInvoiceName | No | Yes | CustInvoiceTable.Name | |
InvoiceOriginTypeInternal type of the invoice origin. The only listed value is Agreement invoice integration. | Enum
| No | Yes | CustomerInvoiceOriginInternalType.OriginType | |
IsPostedShows whether the invoice has been posted. | EnumPosted
| No | Yes | CustInvoiceTable.Posted | |
IsPostedViaIntercompanyShows whether the invoice was posted through intercompany. | EnumInterCompanyPosted
| No | Yes | CustInvoiceTable.InterCompanyPosted | |
LanguageIdLanguage used for the invoice. | String (7)CustLanguageId | No | Yes | LanguageTable.LanguageId | CustInvoiceTable.LanguageId |
MethodOfPaymentMethod of payment for the customer. | StringCustPaymMode | No | Yes | CustPaymModeTable.PaymMode | CustInvoiceTable.PaymMode |
PaymentSchedulePayment schedule for the invoice. | String (30)PaymSchedId | No | Yes | PaymSched.Name | CustInvoiceTable.PaymentSched |
PaymentTermsBaseDateDate from which the payment terms are counted. | DateCashDiscBaseDate | No | Yes | CustInvoiceTable.CashDiscBaseDate | |
PaymentTermsBaseDaysNumber of days used as the base for the payment terms. | IntegerCashDiscBaseDays | No | Yes | CustInvoiceTable.CashDiscBaseDays | |
SalesTaxGroupIdSales tax group for the invoice. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | CustInvoiceTable.TaxGroup |
SalesTaxItemGroupIdItem sales tax group for the invoice. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | CustInvoiceTable.TaxItemGroup |
TermsOfPaymentTerms of payment for the invoice. | String (100)CustPaymTermId | No | Yes | PaymTerm.PaymTermId | CustInvoiceTable.Payment |
Foreign keys (12)
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.
CashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many CustInvoiceTable records → zero or one CashDisc record
CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many CustInvoiceTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many CustInvoiceTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
CustomerGroup→CustGroup.CustGroup(key of CustGroup)Many CustInvoiceTable records → exactly one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
InvoiceAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
LanguageId→LanguageTable.LanguageId(key of LanguageTable)Relation also requires LanguageTable.LabelFile = 1.
Many CustInvoiceTable records → exactly one LanguageTable record
LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity
MethodOfPayment→CustPaymModeTable.PaymMode(key of CustPaymModeTable)Many CustInvoiceTable records → zero or one CustPaymModeTable record
CustPaymModeTable details: see CustomerPaymentMethodEntity, BankCustPaymModeBankAccountsEntity, CustPaymModeTableBiEntity
PaymentSchedule→PaymSched.Name(key of PaymSched)Many CustInvoiceTable records → zero or one PaymSched record
PaymSched details: see PaymentScheduleEntity
SalesTaxGroupId→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many CustInvoiceTable records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
SalesTaxItemGroupId→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many CustInvoiceTable records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
TermsOfPayment→PaymTerm.PaymTermId(key of PaymTerm)Many CustInvoiceTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
Need help with FreeTextInvoiceHeaderCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.