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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SampleIdID of the sample the log entry belongs to. | String (20)QMSSampleId | Yes | QMSSample.SampleId | QMSSampleAuditLogEntity |
LineNumLine number of the log entry within the sample. | RealLineNum | Yes | QMSSampleAuditLogEntity | |
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 | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromValuePrevious value, where the event type changes a value. | String (50)QMSSampleAuditLogFromValue | No | QMSSampleAuditLogEntity | |
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 | |
ReferenceExtra detail about the change to the sample. | String (100)QMSSampleAuditLogReference | No | QMSSampleAuditLogEntity | |
SampleEventTypeKind of event logged, for example sample registered, state change or label created. | EnumQMSSampleEventType (enum) | Yes | QMSSampleAuditLogEntity | |
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 | |
ToValueNew value, where the event type changes a value. | String (50)QMSSampleAuditLogToValue | No | QMSSampleAuditLogEntity |
Indexes (1)
Relations (1)
Each relation joins QMSSampleAuditLog to another table on the fields shown.
QMSSample→QMSSampleJoin on
SampleId = QMSSample.SampleIdMany 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.
QMSSampleAuditLogEntity· 6 fields from this table
Need help with QMSSampleAuditLog in a report, an integration or a migration? Talk to Dr Dynamics.