Table

BaseDocument_IT

Base document

Holds base document references used for Italy, such as an order, contract or original invoice. A row points to a source record through a table ID and record ID, for example an invoice, sales order or purchase order, and adds reference codes like CIPE and tender codes.

Table name
BaseDocument_IT
Module
Shared payables and receivables
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CIPEcodeCIPE code of the base document.String (15)
Code_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentDateDate of the base document.Date
DocumentDate_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
DocumentNumberNumber of the base document.String (20)
Number_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
DocumentTypeKind of base document, such as payment order, contract, agreement or original invoice.Enum
DocumentType_IT (enum)
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
ItemNumberItem number on the base document.String (20)
Number_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
LineNumberLine number on the base document.Integer
LineNumber_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
OrderOrAgreementCodeCode of the related order or agreement.String (100)
OrderOrAgreementCode_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchIdPurchase order number linked to the base document.String (20)
PurchId
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoBusinessDocumentBaseDocumentEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefRecIdSystem record ID of the record this base document refers to.Int64
RefRecId
NoBusinessDocumentBaseDocumentEntity
RefTableIdID of the table that the referenced record is in.Integer
RefTableId
NoBusinessDocumentBaseDocumentEntity
SalesIdSales order number linked to the base document.String (20)
SalesId
NoBusinessDocumentBaseDocumentEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TenderCodeIdentification code of the tender procedure.String (15)
Code_IT
NoBusinessDocumentBaseDocumentEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 3 more

Indexes (2)

Relations (15)

Each relation joins BaseDocument_IT to another table on the fields shown.

  • CustInvoiceJour → CustInvoiceJour

    Join on RefTableId = CustInvoiceJour.TableId, RefRecId = CustInvoiceJour.RecId

    Zero or one BaseDocument_IT record → exactly one CustInvoiceJour record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on RefTableId = ProjInvoiceJour.TableId, RefRecId = ProjInvoiceJour.RecId

    Zero or one BaseDocument_IT record → exactly one ProjInvoiceJour record

  • CustInvoiceTable → CustInvoiceTable

    Join on RefTableId = CustInvoiceTable.TableId, RefRecId = CustInvoiceTable.RecId

    Cardinality not set in the metadata.

  • InventJournalTable → InventJournalTable

    Join on RefTableId = InventJournalTable.TableId, RefRecId = InventJournalTable.RecId

    Zero or one BaseDocument_IT record → exactly one InventJournalTable record

  • LedgerJournalTable → LedgerJournalTable

    Join on RefTableId = LedgerJournalTable.TableId, RefRecId = LedgerJournalTable.RecId

    Zero or one BaseDocument_IT record → exactly one LedgerJournalTable record

  • ProjJournalTable → ProjJournalTable

    Join on RefTableId = ProjJournalTable.TableId, RefRecId = ProjJournalTable.RecId

    Zero or one BaseDocument_IT record → exactly one ProjJournalTable record

  • SalesTable → SalesTable

    Join on RefTableId = SalesTable.TableId, RefRecId = SalesTable.RecId

    Zero or one BaseDocument_IT record → exactly one SalesTable record

  • ProjProposalJour → ProjProposalJour

    Join on RefTableId = ProjProposalJour.TableId, RefRecId = ProjProposalJour.RecId

    Zero or one BaseDocument_IT record → exactly one ProjProposalJour record

  • ProjTable → ProjTable

    Join on RefTableId = ProjTable.TableId, RefRecId = ProjTable.RecId

    Zero or one BaseDocument_IT record → exactly one ProjTable record

  • PurchTable → PurchTable

    Join on RefTableId = PurchTable.TableId, RefRecId = PurchTable.RecId

    Zero or one BaseDocument_IT record → exactly one PurchTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on RefTableId = LedgerJournalTrans.TableId, RefRecId = LedgerJournalTrans.RecId

    Zero or one BaseDocument_IT record → exactly one LedgerJournalTrans record

  • VendInvoiceInfoTable → VendInvoiceInfoTable

    Join on RefTableId = VendInvoiceInfoTable.TableId, RefRecId = VendInvoiceInfoTable.RecId

    Zero or one BaseDocument_IT record → exactly one VendInvoiceInfoTable record

  • CustTrans → CustTrans

    Join on RefTableId = CustTrans.TableId, RefRecId = CustTrans.RecId

    Zero or one BaseDocument_IT record → exactly one CustTrans record

  • VendTrans → VendTrans

    Join on RefTableId = VendTrans.TableId, RefRecId = VendTrans.RecId

    Zero or one BaseDocument_IT record → exactly one VendTrans record

  • VendInvoiceJour → VendInvoiceJour

    Join on RefTableId = VendInvoiceJour.TableId, RefRecId = VendInvoiceJour.RecId

    Zero or one BaseDocument_IT record → exactly one VendInvoiceJour record

Get this data out

Tables are not exposed directly. These public entities read from BaseDocument_IT; use one of them in Power BI, Power Platform or a data management project.

Need help with BaseDocument_IT in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk