Data entity

FreeTextInvoiceLineEntity

Holds the lines of customer free text invoices. Each line is identified by its line number and the record ID of its parent invoice. It carries amounts, quantity, unit price, sales tax and withholding tax groups, billing code, project and fixed asset references, and dimension values. Some fields are used for France (NGP code) and Brazil (CFOP code).

Entity name
FreeTextInvoiceLineEntity
Public entity name
FreeTextInvoiceLine
OData collection
FreeTextInvoiceLines
Category
Document
Module
Accounts receivable
Read-only
No
Data management enabled
No
Configuration key
LedgerBasic
Keys
LineNumber, ParentRecId
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/FreeTextInvoiceLines
Dataverse virtual table
mserp_freetextinvoicelineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • CustInvoiceLine · root
  • CustBillingCode · OuterJoin to CustInvoiceLine · read-only
  • CustInvoiceLine_Corrected (table CustInvoiceLine) · OuterJoin to CustInvoiceLine · read-only
  • CustInvoiceTable_ParentRecId (table CustInvoiceTable) · OuterJoin to CustInvoiceLine · read-only
  • ProjFundingSource · OuterJoin to CustInvoiceLine · read-only
  • DefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to CustInvoiceLine · read-only
  • MainAccountDAVC (table DimensionCombinationEntity) · OuterJoin to CustInvoiceLine · read-only
  • NGPCodeTable (table NGPCodesTable_FR) · OuterJoin to CustInvoiceLine · read-only
  • CFOPTable_BR · OuterJoin to CustInvoiceLine · read-only

Fields (46)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
CountryRegionIdCountry or region of origin, linked to the country/region list.String
ItemOrigCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdCustInvoiceLine.OrigCountryRegionId
TransactionCurrencyAmountLine amount in the transaction currency.Real
AmountCur
NoYesCustInvoiceLine.AmountCur
AmountDetailsLong free text with extra details about the amount.String (-1)
AmountDetails
NoYesCustInvoiceLine.AmountDetails
ValueModelFixed asset book that the line refers to.String
AssetBookIdPurchSalesInvent
NoYesAssetBookTable.BookIdCustInvoiceLine.AssetBookId
FixedAssetNumberFixed asset number that the line refers to.String (20)
AssetIdOpen
NoYesAssetTable.AssetIdCustInvoiceLine.AssetId
BillingCodeBilling code entered on the line.String
BillingCode
NoYesCustInvoiceLine.BillingCode
CorrectedInvoiceLineIdPoints to the invoice line that this line corrects.Int64
RefRecId
NoNo (private)CustInvoiceLine.RecIdCustInvoiceLine.CorrectedCustInvoiceLine
CurrencyCodeCurrency of the line, linked to the currency table.String (3)
CustCurrencyCode
NoYesCurrency.CurrencyCodeCustInvoiceLine.CurrencyCode
BillingCodeReferenceIdPoints to the customer billing code record.Int64
BillingCodeRefRecId
NoNo (private)CustBillingCode.RecIdCustInvoiceLine.CustBillingCode
DefaultDimensionPoints to the set of default financial dimension values for the line.Int64
LedgerDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdCustInvoiceLine.DefaultDimension
DescriptionText describing the line.String (512)
TransactionTextLarge
NoYesCustInvoiceLine.Description
InvoiceTextLong free text note for the invoice line.String (-1)
Notes
NoYesCustInvoiceLine.InvoiceTxt
MainAccountMain account and dimension combination for the line.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdCustInvoiceLine.LedgerDimension
LineNumberPosition number of the line within the invoice.Real
LineNum
YesYesCustInvoiceLine.LineNum
StateOfOriginState of origin, linked to the state list for the country or region of origin.String
ItemOrigStateId
NoYesLogisticsAddressState.StateIdCustInvoiceLine.OrigState
ParentRecIdPoints to the customer free text invoice that this line belongs to.Int64
CustInvoiceTableRefRecId
NoYesCustInvoiceTable.RecIdCustInvoiceLine.ParentRecId
CategoryIdProject category of the line.String (30)
ProjCategoryId
NoYesProjCategory.CategoryIdCustInvoiceLine.ProjCategoryId
FundingSourceIdPoints to the project funding source.Int64
ProjFundingSourceRefId
NoNo (private)ProjFundingSource.RecIdCustInvoiceLine.ProjFundingSource
ProjectIDProject that the line belongs to.String (20)
ProjId
NoYesProjTable.ProjIdCustInvoiceLine.ProjId
TransactionIDIdentifier of the related project transaction.String (20)
ProjTransIdBase
NoYesCustInvoiceLine.ProjTransId
PropertyNumberProperty number, used for Mexico.String (20)
PropertyNumber_MX
NoYesCustInvoiceLine.PropertyNumber_MX
QuantityInvoiced quantity on the line.Real
InvoiceQuantity
NoYesCustInvoiceLine.Quantity
ReasonTableReferencePoints to the reason reference for the line.Int64
ReasonRefRecID
NoNo (private)ReasonTableRef.RecIdCustInvoiceLine.ReasonRefRecId
SalesTaxAmountSales tax amount on the line.Real
TaxAmount
NoYesCustInvoiceLine.TaxAmount
SalesTaxGroupIdSales tax group applied to the line.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupCustInvoiceLine.TaxGroup
SalesTaxItemGroupIdItem sales tax group applied to the line.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupCustInvoiceLine.TaxItemGroup
WithholdingTaxGroupWithholding tax group applied to the line.String
TaxWithholdGroup
NoYesTaxWithholdGroupHeading.TaxWithholdGroupCustInvoiceLine.TaxWithholdGroup
PrintCodePrint code related to tax.low confidenceString
TaxWriteCode
NoYesCustInvoiceLine.TaxWriteCode
TransactionCodeTransaction code used for Intrastat reporting.String
IntrastatTransactionCodeId
NoYesIntrastatTransactionCode.TransactionCodeCustInvoiceLine.TransactionCode
UnitPricePrice per unit on the invoice line.Real
InvoiceUnitPrice
NoYesCustInvoiceLine.UnitPrice
TotalWeightTotal weight of the line.Real
Weight
NoYesCustInvoiceLine.Weight
DefaultDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
MainAccountDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
NGPCodeThe NGP code, a whole number; used for France.Integer
NGP_FR
NoYesNGPCodesTable_FR.NGPCode
EInvoiceAccountCodeDimension account code used for electronic invoicing.String (35)
EInvoiceAccountCode
NoYesCustInvoiceLine.EInvoiceAccountCode
NGPCodeRecIdPoints to an NGP code, used for France.Int64
NGPCodesTableFRId
NoNo (private)NGPCodesTable_FR.RecIdCustInvoiceLine.NGPCodesTable_FR
CFOPCodeCFOP code.String (5)
CustVendCFOPId_BR
YesYesCFOPTable_BR.CFOPId
CFOPTableRecIdPoints to a CFOP code, used for Brazil.Int64
RefRecId
NoNo (private)CFOPTable_BR.RecIdCustInvoiceLine.CFOPTable_BR
IsServiceInvoiceYes/No flag marking a service invoice, used for Brazil.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceLine.ServiceInvoice_BR
FiscalInformationServiceCodeTax service code, used for Brazil.String
TaxServiceCodeId_BR
NoYesCustInvoiceLine.TaxServiceCode_BR
ExternalInvoiceIdInvoice number from an external source, up to 60 characters.String (60)
CustomerExternalInvoiceId
NoYesCustInvoiceLine.ExternalInvoiceId
AssetIdFixed asset inventory number, used for Russia.String (20)
RAssetIdOpen
NoYesRAssetTable.AccountNumCustInvoiceLine.AssetId_RU
CountryNameShort country or region name, used for Russia.String (255)
LogisticsAddressCountryRegionShortName
NoYesCustInvoiceLine.CountryName_RU
InvoiceGTDCustoms declaration (GTD) number, used for Russia.String (30)
CustFreeInvoiceGTDId_RU
NoYesCustInvoiceLine.InvoiceGtd_RU
SalesUnitUnit of measurement, used for Russia.String
SalesUnit
NoYesUnitOfMeasure.SymbolCustInvoiceLine.SalesUnit_RU
OverrideSalesTaxYes/No flag to override the sales tax set by tax calculation.Enum
TaxIntegrationOverrideSalesTax
NoYes

Platform enum: values not in the metadata extract.

NoYesCustInvoiceLine.OverrideSalesTax

Foreign keys (22)

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 FreeTextInvoiceLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk