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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ActionAction taken, such as created, moved, deleted, restored or file attached.Enum
DocuHistoryAction (enum)
NoNone
ActualCompanyIdCompany where the action was recorded. The label is plural, so this is partly inferred.low confidenceString
SelectableDataArea
NoNone
CaptionName of the record that the attachment is attached to.String (60)
Description
NoNone
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
DocuRefDeletedShows whether the attachment reference record was deleted.Enum
NoYes (enum)
NoNone
DocuRefRecIdSystem record ID of the attachment reference. The label says file name.Int64
DocuRefRecId
NoNone
DocuValueDeletedShows whether the attachment value record was deleted.Enum
NoYes (enum)
NoNone
FileIdUnique ID of the stored file.Guid
FileId
NoNone
NameDescription of the attachment.String (60)
Description
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
RefCompanyIdCompany of the linked record.String
SelectableDataArea
YesNone
RefRecIdSystem record ID of the record that the entry refers to.Int64
RefRecId
YesNone
RefTableIdID of the table of the linked record.Integer
RefTableId
YesNone
StackTraceTechnical trace text saved with the history entry.String (-1)NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TypeIdDocument type of the attachment.String (20)
DocuTypeId
YesNone
ValueRecIdSystem record ID of the attachment value record.Int64
RefRecId
NoNone

Indexes (4)

Relations (1)

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

  • DocuHistoryListViewRelation → DocuHistoryListLatestEntryByDocuRefRecIdView

    Join on RecId = DocuHistoryListLatestEntryByDocuRefRecIdView.MaxRecId

    Exactly 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.

Email sales@drdynamics.co.uk