Table

DocuDeletedRef

Deleted document references

Holds references to document attachments that were deleted. Each row keeps the original record and table, document type, description, notes and the deletion options. It links to document types and to deleted or current document values.

Table name
DocuDeletedRef
Module
System administration
Table group
WorksheetLine
Table type
Regular
Data per company
No
Configuration key
None
Primary index
RecIdx
Replacement key
None
Key fields
RecId
Model
ApplicationFoundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
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
ActualCompanyIdCompany used with the type ID to find the document type.String
SelectableDataArea
NoDocuType.DataAreaIdNone
AuthorSystem record ID of the author.low confidenceInt64
RefRecId
NoNone
CaptionDescribes the record that the deleted attachment was first attached to, as a text of up to 60 characters.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
DefaultAttachmentShows whether this was the default attachment.Enum
DocuDefaultAttachment
NoYes (enum)
NoNone
DocumentIdUnique ID of the document.Guid
DocuDocumentId
NoNone
DocuTypeSystem record ID of a related reference.low confidenceInt64
RefRecId
NoNone
ExtensionFieldsContainer for extra field values. Purpose not clear from the metadata.low confidenceContainerNoNone
FileRemovalConfirmationResponseUser answer on whether the physical file may be deleted: unknown, no or yes.Enum
UnknownNoYes (enum)
NoNone
InterCompanySkipUpdateControls whether intercompany updates are skipped: no, internal, intercompany or both.Enum
InterCompanySkipUpdate (enum)
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
NameShort description of the attachment.String (60)
Description
NoNone
NotesFree text note about the attachment.String (-1)
Notes
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartySystem record ID of a related reference.low confidenceInt64
RefRecId
NoNone
PhysicalFileForceDeletionShows whether the physical file must be deleted with the reference.Enum
NoYes (enum)
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 record the attachment was linked to.String
SelectableDataArea
YesNone
RefRecIdSystem record ID of the record the attachment was linked to.Int64
RefRecId
YesNone
RefTableIdID of the table of the record the attachment was linked to.Integer
RefTableId
YesNone
RemoveOptionWhether to remove the document only or the document and its physical file.Enum
DocuRemoveOption (enum)
NoNone
RestrictionShows whether the document is internal or external.Enum
DocuRestriction (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TypeIdDocument type. It points to the document types table.String (20)
DocuTypeId
YesDocuType.TypeIdNone
ValueRecIdSystem record ID of the document value, in the deleted values or document values table.Int64
RefRecId
NoDocuDeletedValue.OriginalRecIdDocuValue.RecIdNone

Indexes (3)

Relations (3)

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

  • DocuDeletedValue → DocuDeletedValue

    Join on ValueRecId = DocuDeletedValue.OriginalRecId

    Many DocuDeletedRef records → zero or one DocuDeletedValue record

  • DocuValue → DocuValue

    Join on ValueRecId = DocuValue.RecId

    Many DocuDeletedRef records → zero or one DocuValue record

  • DocuType → DocuType

    Join on TypeId = DocuType.TypeId, ActualCompanyId = DocuType.DataAreaId

    Many DocuDeletedRef records → exactly one DocuType record

Get this data out

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

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

Email sales@drdynamics.co.uk