Table
DocuHistory
Keeps a history of actions on document attachments, such as created, moved, deleted, restored or file attached. Each row refers to the linked record by table ID and record ID, and to the attachment. It also stores a caption, a stack trace and flags for deleted attachment records.
- Table name
DocuHistory- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
ApplicationFoundation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActionAction taken, such as created, moved, deleted, restored or file attached. | EnumDocuHistoryAction (enum) | No | None | |
ActualCompanyIdCompany where the action was recorded. The label is plural, so this is partly inferred.low confidence | StringSelectableDataArea | No | None | |
CaptionName of the record that the attachment is attached to. | String (60)Description | No | 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 | |
DocuRefDeletedShows whether the attachment reference record was deleted. | EnumNoYes (enum) | No | None | |
DocuRefRecIdSystem record ID of the attachment reference. The label says file name. | Int64DocuRefRecId | No | None | |
DocuValueDeletedShows whether the attachment value record was deleted. | EnumNoYes (enum) | No | None | |
FileIdUnique ID of the stored file. | GuidFileId | No | None | |
NameDescription of the attachment. | String (60)Description | 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 | |
RefCompanyIdCompany of the linked record. | StringSelectableDataArea | Yes | None | |
RefRecIdSystem record ID of the record that the entry refers to. | Int64RefRecId | Yes | None | |
RefTableIdID of the table of the linked record. | IntegerRefTableId | Yes | None | |
StackTraceTechnical trace text saved with the history entry. | String (-1) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TypeIdDocument type of the attachment. | String (20)DocuTypeId | Yes | None | |
ValueRecIdSystem record ID of the attachment value record. | Int64RefRecId | No | None |
Indexes (4)
RefRecIdAndCreatedDateTimeNot unique.
ValueRecIdxNot unique.
FindByTableIdDocuRefRecIdxNot unique.
DocuRefRecIdxDocuRefRecId,CreatedDateTime,DocuRefDeletedNot unique.
Relations (1)
Each relation joins DocuHistory to another table on the fields shown.
DocuHistoryListViewRelation→DocuHistoryListLatestEntryByDocuRefRecIdViewJoin on
RecId = DocuHistoryListLatestEntryByDocuRefRecIdView.MaxRecIdExactly one DocuHistory record → exactly one DocuHistoryListLatestEntryByDocuRefRecIdView record
Get this data out
No public entity reads from DocuHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with DocuHistory in a report, an integration or a migration? Talk to Dr Dynamics.