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· rootCustBillingCode· OuterJoin toCustInvoiceLine· read-onlyCustInvoiceLine_Corrected(tableCustInvoiceLine) · OuterJoin toCustInvoiceLine· read-onlyCustInvoiceTable_ParentRecId(tableCustInvoiceTable) · OuterJoin toCustInvoiceLine· read-onlyProjFundingSource· OuterJoin toCustInvoiceLine· read-onlyDefaultDimensionDAVS(tableDimensionSetEntity) · OuterJoin toCustInvoiceLine· read-onlyMainAccountDAVC(tableDimensionCombinationEntity) · OuterJoin toCustInvoiceLine· read-onlyNGPCodeTable(tableNGPCodesTable_FR) · OuterJoin toCustInvoiceLine· read-onlyCFOPTable_BR· OuterJoin toCustInvoiceLine· read-only
Fields (46)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CountryRegionIdCountry or region of origin, linked to the country/region list. | StringItemOrigCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | CustInvoiceLine.OrigCountryRegionId |
TransactionCurrencyAmountLine amount in the transaction currency. | RealAmountCur | No | Yes | CustInvoiceLine.AmountCur | |
AmountDetailsLong free text with extra details about the amount. | String (-1)AmountDetails | No | Yes | CustInvoiceLine.AmountDetails | |
ValueModelFixed asset book that the line refers to. | StringAssetBookIdPurchSalesInvent | No | Yes | AssetBookTable.BookId | CustInvoiceLine.AssetBookId |
FixedAssetNumberFixed asset number that the line refers to. | String (20)AssetIdOpen | No | Yes | AssetTable.AssetId | CustInvoiceLine.AssetId |
BillingCodeBilling code entered on the line. | StringBillingCode | No | Yes | CustInvoiceLine.BillingCode | |
CorrectedInvoiceLineIdPoints to the invoice line that this line corrects. | Int64RefRecId | No | No (private) | CustInvoiceLine.RecId | CustInvoiceLine.CorrectedCustInvoiceLine |
CurrencyCodeCurrency of the line, linked to the currency table. | String (3)CustCurrencyCode | No | Yes | Currency.CurrencyCode | CustInvoiceLine.CurrencyCode |
BillingCodeReferenceIdPoints to the customer billing code record. | Int64BillingCodeRefRecId | No | No (private) | CustBillingCode.RecId | CustInvoiceLine.CustBillingCode |
DefaultDimensionPoints to the set of default financial dimension values for the line. | Int64LedgerDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | CustInvoiceLine.DefaultDimension |
DescriptionText describing the line. | String (512)TransactionTextLarge | No | Yes | CustInvoiceLine.Description | |
InvoiceTextLong free text note for the invoice line. | String (-1)Notes | No | Yes | CustInvoiceLine.InvoiceTxt | |
MainAccountMain account and dimension combination for the line. | Int64LedgerDimensionDefaultAccount | No | No (private) | DimensionAttributeValueCombination.RecId | CustInvoiceLine.LedgerDimension |
LineNumberPosition number of the line within the invoice. | RealLineNum | Yes | Yes | CustInvoiceLine.LineNum | |
StateOfOriginState of origin, linked to the state list for the country or region of origin. | StringItemOrigStateId | No | Yes | LogisticsAddressState.StateId | CustInvoiceLine.OrigState |
ParentRecIdPoints to the customer free text invoice that this line belongs to. | Int64CustInvoiceTableRefRecId | No | Yes | CustInvoiceTable.RecId | CustInvoiceLine.ParentRecId |
CategoryIdProject category of the line. | String (30)ProjCategoryId | No | Yes | ProjCategory.CategoryId | CustInvoiceLine.ProjCategoryId |
FundingSourceIdPoints to the project funding source. | Int64ProjFundingSourceRefId | No | No (private) | ProjFundingSource.RecId | CustInvoiceLine.ProjFundingSource |
ProjectIDProject that the line belongs to. | String (20)ProjId | No | Yes | ProjTable.ProjId | CustInvoiceLine.ProjId |
TransactionIDIdentifier of the related project transaction. | String (20)ProjTransIdBase | No | Yes | CustInvoiceLine.ProjTransId | |
PropertyNumberProperty number, used for Mexico. | String (20)PropertyNumber_MX | No | Yes | CustInvoiceLine.PropertyNumber_MX | |
QuantityInvoiced quantity on the line. | RealInvoiceQuantity | No | Yes | CustInvoiceLine.Quantity | |
ReasonTableReferencePoints to the reason reference for the line. | Int64ReasonRefRecID | No | No (private) | ReasonTableRef.RecId | CustInvoiceLine.ReasonRefRecId |
SalesTaxAmountSales tax amount on the line. | RealTaxAmount | No | Yes | CustInvoiceLine.TaxAmount | |
SalesTaxGroupIdSales tax group applied to the line. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | CustInvoiceLine.TaxGroup |
SalesTaxItemGroupIdItem sales tax group applied to the line. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | CustInvoiceLine.TaxItemGroup |
WithholdingTaxGroupWithholding tax group applied to the line. | StringTaxWithholdGroup | No | Yes | TaxWithholdGroupHeading.TaxWithholdGroup | CustInvoiceLine.TaxWithholdGroup |
PrintCodePrint code related to tax.low confidence | StringTaxWriteCode | No | Yes | CustInvoiceLine.TaxWriteCode | |
TransactionCodeTransaction code used for Intrastat reporting. | StringIntrastatTransactionCodeId | No | Yes | IntrastatTransactionCode.TransactionCode | CustInvoiceLine.TransactionCode |
UnitPricePrice per unit on the invoice line. | RealInvoiceUnitPrice | No | Yes | CustInvoiceLine.UnitPrice | |
TotalWeightTotal weight of the line. | RealWeight | No | Yes | CustInvoiceLine.Weight | |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
MainAccountDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
NGPCodeThe NGP code, a whole number; used for France. | IntegerNGP_FR | No | Yes | NGPCodesTable_FR.NGPCode | |
EInvoiceAccountCodeDimension account code used for electronic invoicing. | String (35)EInvoiceAccountCode | No | Yes | CustInvoiceLine.EInvoiceAccountCode | |
NGPCodeRecIdPoints to an NGP code, used for France. | Int64NGPCodesTableFRId | No | No (private) | NGPCodesTable_FR.RecId | CustInvoiceLine.NGPCodesTable_FR |
CFOPCodeCFOP code. | String (5)CustVendCFOPId_BR | Yes | Yes | CFOPTable_BR.CFOPId | |
CFOPTableRecIdPoints to a CFOP code, used for Brazil. | Int64RefRecId | No | No (private) | CFOPTable_BR.RecId | CustInvoiceLine.CFOPTable_BR |
IsServiceInvoiceYes/No flag marking a service invoice, used for Brazil. | Enum
| No | Yes | CustInvoiceLine.ServiceInvoice_BR | |
FiscalInformationServiceCodeTax service code, used for Brazil. | StringTaxServiceCodeId_BR | No | Yes | CustInvoiceLine.TaxServiceCode_BR | |
ExternalInvoiceIdInvoice number from an external source, up to 60 characters. | String (60)CustomerExternalInvoiceId | No | Yes | CustInvoiceLine.ExternalInvoiceId | |
AssetIdFixed asset inventory number, used for Russia. | String (20)RAssetIdOpen | No | Yes | RAssetTable.AccountNum | CustInvoiceLine.AssetId_RU |
CountryNameShort country or region name, used for Russia. | String (255)LogisticsAddressCountryRegionShortName | No | Yes | CustInvoiceLine.CountryName_RU | |
InvoiceGTDCustoms declaration (GTD) number, used for Russia. | String (30)CustFreeInvoiceGTDId_RU | No | Yes | CustInvoiceLine.InvoiceGtd_RU | |
SalesUnitUnit of measurement, used for Russia. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | CustInvoiceLine.SalesUnit_RU |
OverrideSalesTaxYes/No flag to override the sales tax set by tax calculation. | EnumTaxIntegrationOverrideSalesTax
| No | Yes | CustInvoiceLine.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.
CountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many CustInvoiceLine records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
ValueModel→AssetBookTable.BookId(key of AssetBookTable)Many CustInvoiceLine records → zero or one AssetBookTable record
AssetBookTable details: see AssetValueModelSetupEntity, AssetBookTableBiEntity, AssetBookTableCDREntity
FixedAssetNumber→AssetTable.AssetId(key of AssetTable)Many CustInvoiceLine records → zero or one AssetTable record
AssetTable details: see AssetFixedAssetV2Entity, AssetFixedAssetEntity, EntAssetMaintenanceAssetV3Entity
CorrectedInvoiceLineId→CustInvoiceLine.RecId(key of CustInvoiceLine)Many CustInvoiceLine records → zero or one CustInvoiceLine record
CustInvoiceLine details: see FreeTextInvoiceLineCDSEntity, TaxFreeTextInvoiceLineTransTaxInformationEntity, CustInvoiceLineBiEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many CustInvoiceLine records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
BillingCodeReferenceId→CustBillingCode.RecId(key of CustBillingCode)Many CustInvoiceLine records → zero or one CustBillingCode record
CustBillingCode details: see CustBillingCodeVersionEntity, CustBillingClassificationCodeEntity, CustBillingCodeAccountingDistributionEntity
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many CustInvoiceLine records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
MainAccount→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many CustInvoiceLine records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
StateOfOrigin→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
StateOfOrigin=LogisticsAddressState.StateId,CountryRegionId=LogisticsAddressState.CountryRegionIdMany CustInvoiceLine records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
ParentRecId→CustInvoiceTable.RecId(key of CustInvoiceTable)Many CustInvoiceLine records → exactly one CustInvoiceTable record
CustInvoiceTable details: see FreeTextInvoiceHeaderCDSEntity, MCRCustomerInvoicePaymentEntity, CustInvoiceTableBiEntity
CategoryId→ProjCategory.CategoryId(key of ProjCategory)Many CustInvoiceLine records → zero or one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
FundingSourceId→ProjFundingSource.RecId(key of ProjFundingSource)Many CustInvoiceLine records → zero or one ProjFundingSource record
ProjFundingSource details: see ProjFundingSourceEntity, ProjCDSProjectContractEntity, AdvancedLedgerEntryEntity
ProjectID→ProjTable.ProjId(key of ProjTable)Many CustInvoiceLine records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ReasonTableReference→ReasonTableRef.RecId(key of ReasonTableRef)Many CustInvoiceLine records → zero or one ReasonTableRef record
ReasonTableRef details: see CustInvoiceJournalLineEntity, PurchPurchaseOrderConfirmationHeaderEntity, PurchPurchaseOrderHeaderEntity
SalesTaxGroupId→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many CustInvoiceLine records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
SalesTaxItemGroupId→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many CustInvoiceLine records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
WithholdingTaxGroup→TaxWithholdGroupHeading.TaxWithholdGroup(key of TaxWithholdGroupHeading)Many CustInvoiceLine records → zero or one TaxWithholdGroupHeading record
TaxWithholdGroupHeading details: see TaxWithholdingGroupEntity
TransactionCode→IntrastatTransactionCode.TransactionCode(key of IntrastatTransactionCode)Many CustInvoiceLine records → zero or one IntrastatTransactionCode record
IntrastatTransactionCode details: see IntrastatTransactionCodeEntity
NGPCodeRecId→NGPCodesTable_FR.RecId(key of NGPCodesTable_FR)Many CustInvoiceLine records → zero or one NGPCodesTable_FR record
NGPCodesTable_FR details: see IntrastatEntity, IntrastatEntityV2, NGPCodeEntity
CFOPTableRecId→CFOPTable_BR.RecId(key of CFOPTable_BR)Many CustInvoiceLine records → exactly one CFOPTable_BR record
CFOPTable_BR details: see CFOPCodesEntity, ProjectParameterEntity, InventTransferLineFiscalInfoEntity
AssetId→RAssetTable.AccountNum(key of RAssetTable)Many CustInvoiceLine records → exactly one RAssetTable record
RAssetTable details: see RAssetTableEntity, RAssetStandardsEntity, RAssetUseEntity
SalesUnit→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many CustInvoiceLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
Need help with FreeTextInvoiceLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.