Table

SourceDocumentLine

Source document line

Holds the lines of source documents. Each line points to a source document header and can point to a parent line. It records the accounting status, accounting date, quantity and a link to the underlying source record.

Table name
SourceDocumentLine
Module
Accounting foundation
Table group
TransactionLine
Table type
Regular
Data per company
No
Configuration key
LedgerBasic
Primary index
None
Replacement key
None
Key fields
None
Model
SourceDocumentation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingStatusThe accounting status of the line, such as draft, completed, partly distributed or cancelled.Enum
SourceDocumentLineAccountingStatus (enum)
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoSourceDocumentLineBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntitySourceDocumentLineCDREntity
DraftVersionPurpose not clear from the metadata.low confidenceInteger
RecVersion
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
ExchangeRateDateThe accounting date of the line.Date
AccountingDate
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
IsFinalPurpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoSourceDocumentLineBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
ParentSourceDocumentLineThe parent source document line, if this line sits under another one.Int64
SourceDocumentLineRecId
NoSourceDocumentLine.RecIdSourceDocumentLineBiEntitySourceDocumentLineCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoSourceDocumentLineBiEntity
SourceDocumentHeaderThe source document header that this line belongs to.Int64
SourceDocumentHeaderRecId
YesSourceDocumentHeader.RecIdSourceDocumentLineBiEntitySourceDocumentLineCDREntity
SourceImplementationRecIdSystem record ID of the underlying source record.Int64
RefRecId
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
SourceRelationTypeID of the table that holds the underlying source record.Integer
RefTableId
YesSourceDocumentLineBiEntitySourceDocumentLineCDREntity
StateContainerStored state data for the line, kept in a container field.Container
SourceDocumentLineStateContainer
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
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
TermQuantityThe quantity on the line.Real
Qty
NoSourceDocumentLineBiEntitySourceDocumentLineCDREntity
TypeEnumNameName of the enum that defines the source document type.String
EnumName
YesSourceDocumentLineBiEntitySourceDocumentLineCDREntity
TypeEnumValueThe value of the source document type within its enum.Integer
SourceDocumentTypeEnumValue
YesSourceDocumentLineBiEntitySourceDocumentLineCDREntity

Indexes (6)

Relations (3)

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

  • ParentSourceDocumentLine → SourceDocumentLine

    Join on ParentSourceDocumentLine = SourceDocumentLine.RecId

    Many SourceDocumentLine records → zero or one SourceDocumentLine record

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Many SourceDocumentLine records → exactly one SourceDocumentHeader record

  • VendInvoiceInfoLine → VendInvoiceInfoLine

    Join on RecId = VendInvoiceInfoLine.SourceDocumentLine

    Cardinality not set in the metadata.

Get this data out

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

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

Email sales@drdynamics.co.uk