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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDateDate used for the accounting of the event. | DateAccountingDate | Yes | AccountingEventBiEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | AccountingEventBiEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | AccountingEventBiEntity | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | AccountingEventBiEntity | |
DelayedAccountingEventTypeEvent type used for delayed accounting, with the same values as the event type.low confidence | EnumAccountingEventType (enum) | No | AccountingEventBiEntity | |
DocumentDataAreaIdCompany (legal entity) of the document that the event relates to. | StringDataAreaId | No | AccountingEventBiEntity | |
DocumentRecIdSystem record ID of the document that the event relates to. | Int64RefRecId | No | AccountingEventBiEntity | |
DocumentTableIdID of the table that holds the related document. | IntegerTableId | No | AccountingEventBiEntity | |
EventDateTimeDate and time of the change, in UTC. | UtcDateTimeSysUtcDateTime | No | AccountingEventBiEntity | |
IsAccountingRequiredYes/No flag that shows whether accounting is required. | EnumNoYes (enum) | No | AccountingEventBiEntity | |
IsPrimaryLedgerYes/No flag that shows whether the ledger is the primary ledger. | EnumNoYes (enum) | No | AccountingEventBiEntity | |
LedgerSystem record ID of the ledger used by the event. | Int64LedgerRecId | No | AccountingEventBiEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | AccountingEventBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | AccountingEventBiEntity | |
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 | AccountingEventBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | AccountingEventBiEntity | |
SourceDocumentHeaderPoints to the source document header that the event belongs to. | Int64SourceDocumentHeaderRecId | No | SourceDocumentHeader.RecId | AccountingEventBiEntity |
StateCurrent state of the event: started, journalized, complete or error. | EnumAccountingEventState (enum) | No | AccountingEventBiEntity | |
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 | |
TypeKind of event, such as original, correction, period close, period open or cancel. | EnumAccountingEventType (enum) | No | AccountingEventBiEntity | |
VoucherVoucher number linked to the event. | String (20)Voucher | No | AccountingEventBiEntity |
Indexes (5)
IdentificationSourceDocumentHeader,AccountingDate,Type,StateNot unique.
StateIdxState,SourceDocumentHeader,Partition,RecIdNot unique.
TypeIdxType,State,SourceDocumentHeader,DocumentDataAreaIdNot unique.
DocumentIdxDocumentRecId,DocumentTableId,Partition,RecId,State,Type,Voucher,DocumentDataAreaIdNot unique.
AccountingDateIdxAccountingDate,RecId,SourceDocumentHeaderNot unique.
Relations (1)
Each relation joins AccountingEvent to another table on the fields shown.
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdMany 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.
AccountingEventBiEntity· 20 fields from this table
Need help with AccountingEvent in a report, an integration or a migration? Talk to Dr Dynamics.