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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDateDate the event is accounted for. | DateAccountingDate | Yes | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DelayedAccountingEventTypeEvent type that applies when accounting is delayed. | EnumAccountingEventType (enum) | No | None | |
DocumentDataAreaIdCompany (legal entity) of the document behind the event. | StringDataAreaId | No | None | |
DocumentRecIdSystem record ID of the document the event refers to. | Int64RefRecId | No | None | |
DocumentTableIdNumeric ID of the table that holds the referenced document. | IntegerTableId | No | None | |
EventDateTimeDate and time the event changed, in UTC. | UtcDateTimeSysUtcDateTime | No | None | |
IsAccountingRequiredYes/No flag showing whether accounting is required for the event. | EnumNoYes (enum) | No | None | |
IsPrimaryLedgerYes/No flag showing whether the ledger is the primary ledger. | EnumNoYes (enum) | No | None | |
LedgerSystem record ID of the ledger the event belongs to. | Int64LedgerRecId | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SourceDocumentHeaderLink to the source document header history record for the event. | Int64SourceDocumentHeaderRecId | No | SourceDocumentHeaderHistory.RecId | None |
StateProcessing state of the event: started, journalized, complete or error. | EnumAccountingEventState (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TypeType of event, such as original, correction, period close, period open, finalize or cancel. | EnumAccountingEventType (enum) | No | None | |
VoucherVoucher number linked to the event. | String (20)Voucher | No | None |
Indexes (1)
SourceDocumentHeaderIdxNot unique.
Relations (1)
Each relation joins AccountingEventHistory to another table on the fields shown.
SourceDocumentHeaderHistory→SourceDocumentHeaderHistoryJoin on
SourceDocumentHeader = SourceDocumentHeaderHistory.RecIdMany 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.