Table

AccountingEventHistory

Accounting event history

Holds historical accounting events, one row per event. Each row has a voucher, an accounting date, a state and an event type. Rows link to a source document header history record and to a ledger.

Table name
AccountingEventHistory
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 the event is accounted for.Date
AccountingDate
YesNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
DelayedAccountingEventTypeEvent type that applies when accounting is delayed.Enum
AccountingEventType (enum)
NoNone
DocumentDataAreaIdCompany (legal entity) of the document behind the event.String
DataAreaId
NoNone
DocumentRecIdSystem record ID of the document the event refers to.Int64
RefRecId
NoNone
DocumentTableIdNumeric ID of the table that holds the referenced document.Integer
TableId
NoNone
EventDateTimeDate and time the event changed, in UTC.UtcDateTime
SysUtcDateTime
NoNone
IsAccountingRequiredYes/No flag showing whether accounting is required for the event.Enum
NoYes (enum)
NoNone
IsPrimaryLedgerYes/No flag showing whether the ledger is the primary ledger.Enum
NoYes (enum)
NoNone
LedgerSystem record ID of the ledger the event belongs to.Int64
LedgerRecId
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SourceDocumentHeaderLink to the source document header history record for the event.Int64
SourceDocumentHeaderRecId
NoSourceDocumentHeaderHistory.RecIdNone
StateProcessing state of the event: started, journalized, complete or error.Enum
AccountingEventState (enum)
NoNone
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
TypeType of event, such as original, correction, period close, period open, finalize or cancel.Enum
AccountingEventType (enum)
NoNone
VoucherVoucher number linked to the event.String (20)
Voucher
NoNone

Indexes (1)

Relations (1)

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

  • SourceDocumentHeaderHistory → SourceDocumentHeaderHistory

    Join on SourceDocumentHeader = SourceDocumentHeaderHistory.RecId

    Many AccountingEventHistory records → zero or one SourceDocumentHeaderHistory record

Get this data out

No public entity reads from AccountingEventHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk