Table

AccountingEvent

Accounting event

Accounting events for source documents. Each event has a voucher, an accounting date, a type and a state such as started, journalized, complete or error. It links to the source document header and also records the document, the ledger and whether it is the primary ledger.

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

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDateDate used for the accounting of the event.Date
AccountingDate
YesAccountingEventBiEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoAccountingEventBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoAccountingEventBiEntity
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoAccountingEventBiEntity
DelayedAccountingEventTypeEvent type used for delayed accounting, with the same values as the event type.low confidenceEnum
AccountingEventType (enum)
NoAccountingEventBiEntity
DocumentDataAreaIdCompany (legal entity) of the document that the event relates to.String
DataAreaId
NoAccountingEventBiEntity
DocumentRecIdSystem record ID of the document that the event relates to.Int64
RefRecId
NoAccountingEventBiEntity
DocumentTableIdID of the table that holds the related document.Integer
TableId
NoAccountingEventBiEntity
EventDateTimeDate and time of the change, in UTC.UtcDateTime
SysUtcDateTime
NoAccountingEventBiEntity
IsAccountingRequiredYes/No flag that shows whether accounting is required.Enum
NoYes (enum)
NoAccountingEventBiEntity
IsPrimaryLedgerYes/No flag that shows whether the ledger is the primary ledger.Enum
NoYes (enum)
NoAccountingEventBiEntity
LedgerSystem record ID of the ledger used by the event.Int64
LedgerRecId
NoAccountingEventBiEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoAccountingEventBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoAccountingEventBiEntity
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
NoAccountingEventBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoAccountingEventBiEntity
SourceDocumentHeaderPoints to the source document header that the event belongs to.Int64
SourceDocumentHeaderRecId
NoSourceDocumentHeader.RecIdAccountingEventBiEntity
StateCurrent state of the event: started, journalized, complete or error.Enum
AccountingEventState (enum)
NoAccountingEventBiEntity
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
TypeKind of event, such as original, correction, period close, period open or cancel.Enum
AccountingEventType (enum)
NoAccountingEventBiEntity
VoucherVoucher number linked to the event.String (20)
Voucher
NoAccountingEventBiEntity

Indexes (5)

Relations (1)

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

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Many AccountingEvent records → zero or one SourceDocumentHeader record

Get this data out

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

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

Email sales@drdynamics.co.uk