Table

QMSSampleAuditLog

Sample audit log

Records the history of events for each sample, such as registration, lifecycle state changes and quality order creation. Each line is keyed by sample ID and line number. It stores the event type, old and new values and a reference.

Table name
QMSSampleAuditLog
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
InventQualityManagement
Primary index
None
Replacement key
QMSSampleAuditLogIdx
Key fields
SampleId, LineNum
Model
AdvancedQualityManagement

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SampleIdID of the sample the log entry belongs to.String (20)
QMSSampleId
YesQMSSample.SampleIdQMSSampleAuditLogEntity
LineNumLine number of the log entry within the sample.Real
LineNum
YesQMSSampleAuditLogEntity
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FromValuePrevious value, where the event type changes a value.String (50)
QMSSampleAuditLogFromValue
NoQMSSampleAuditLogEntity
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
ReferenceExtra detail about the change to the sample.String (100)
QMSSampleAuditLogReference
NoQMSSampleAuditLogEntity
SampleEventTypeKind of event logged, for example sample registered, state change or label created.Enum
QMSSampleEventType (enum)
YesQMSSampleAuditLogEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ToValueNew value, where the event type changes a value.String (50)
QMSSampleAuditLogToValue
NoQMSSampleAuditLogEntity

Indexes (1)

Relations (1)

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

  • QMSSample → QMSSample

    Join on SampleId = QMSSample.SampleId

    Many QMSSampleAuditLog records → exactly one QMSSample record

Get this data out

Tables are not exposed directly. These public entities read from QMSSampleAuditLog; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk