Table
QMSSample
Samples
Holds quality samples, one record per sample ID. A sample can link to a production order, an item, a lot, a test group, a quality order and a lifecycle state. It also records who registered, tested and scrapped it, with dates, and the planned expiry date.
- Table name
QMSSample- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
InventQualityManagement- Primary index
None- Replacement key
SampleIdx- Key fields
SampleId- Model
AdvancedQualityManagement
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SampleIdUnique ID of the sample. | String (20)QMSSampleId | Yes | QMSSampleEntity | |
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 | |
ExpireDateDate from which the sample may be scrapped, set from registration date plus scrap days. | DateQMSSampleExpireDate | No | QMSSampleEntity | |
InventDimIdInventory dimension combination linked to the sample. | String (20)InventDimId | Yes | InventDim.inventDimId | QMSSampleEntity |
InventTransIdLot ID of the inventory transaction the sample relates to. | String (20)InventTransId | Yes | InventTransOrigin.InventTransId | QMSSampleEntity |
ItemIdItem the sample was taken from. | String (20)ItemId | Yes | InventTable.ItemId | QMSSampleEntity |
ItemSamplingIdItem sampling record linked to the sample. | StringInventItemSamplingId | Yes | InventItemSampling.InventItemSamplingId | QMSSampleEntity |
LabelLayoutIdThe layout used when a label is printed for the sample. It starts from the sample type and can be changed. It points to a calibration label layout. | String (20)QMSLabelLayoutId | No | QMSInventCalibrationLabelLayout.LabelLayoutId | QMSSampleEntity |
LifecycleStateIdCurrent lifecycle state of the sample. | StringQMSSampleLifecycleStateId | No | QMSSampleLifecycleState.StateId | QMSSampleEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProdIdProduction order the sample comes from. | String (20)ProdId | Yes | ProdTable.ProdId | QMSSampleEntity |
QtyQuantity of the sample. | RealQty | No | QMSSampleEntity | |
QualityOrderIdQuality order linked to the sample. | String (20)InventQualityOrderId | No | InventQualityOrderTable.QualityOrderId | QMSSampleEntity |
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 | |
RegisteredByWorkerWorker who registered the sample. | Int64QMSSampleRegisteredByWorker | No | HcmWorker.RecId | QMSSampleEntity |
RegisteredDateTimeDate and time the sample was registered. | UtcDateTimeQMSSampleRegisteredDateTime | No | QMSSampleEntity | |
SampleInspectionMethodHow the sample is inspected: none, inline process, continuous process or both. | EnumQMSSampleInspectionMethod (enum) | No | QMSSampleEntity | |
SampleTypeIdSample type, which sets how the sample is inspected and its allowed lifecycle states. | StringQMSSampleTypeId | No | QMSSampleType.SampleTypeId | QMSSampleEntity |
ScrappedByWorkerWorker who set the sample to the scrapped state. | Int64QMSSampleScrappedByWorker | No | HcmWorker.RecId | QMSSampleEntity |
ScrappedDateTimeDate and time the sample was scrapped. | UtcDateTimeQMSSampleScrappedDateTime | No | QMSSampleEntity | |
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 | |
TestedByWorkerWorker who tested the sample. After repeat tests it holds the latest one. | Int64QMSSampleTestedByWorker | No | HcmWorker.RecId | QMSSampleEntity |
TestedDateTimeDate and time the sample was tested. | UtcDateTimeQMSSampleTestedDateTime | No | QMSSampleEntity | |
TestGroupIdTest group used for the sample. | StringInventTestGroupId | Yes | InventTestGroup.TestGroupId | QMSSampleEntity |
UnitIdUnit of measure for the sample quantity. | StringUnitOfMeasureSymbol | No | QMSSampleEntity |
Indexes (2)
SampleIdxReplacement keyUnique, alternate key.
ProdIdInventTransIdIdxNot unique.
Relations (13)
Each relation joins QMSSample to another table on the fields shown.
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany QMSSample records → exactly one InventTable record
ProdTable→ProdTableJoin on
ProdId = ProdTable.ProdIdMany QMSSample records → exactly one ProdTable record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdZero or one QMSSample record → exactly one InventTransOrigin record
InventItemSampling→InventItemSamplingJoin on
ItemSamplingId = InventItemSampling.InventItemSamplingIdMany QMSSample records → exactly one InventItemSampling record
InventTestGroup→InventTestGroupJoin on
TestGroupId = InventTestGroup.TestGroupIdMany QMSSample records → exactly one InventTestGroup record
InventDim→InventDimJoin on
inventDimId = InventDim.inventDimIdMany QMSSample records → exactly one InventDim record
QMSInventCalibrationLabelLayout→QMSInventCalibrationLabelLayoutJoin on
LabelLayoutId = QMSInventCalibrationLabelLayout.LabelLayoutIdMany QMSSample records → exactly one QMSInventCalibrationLabelLayout record
QMSSampleType→QMSSampleTypeJoin on
SampleTypeId = QMSSampleType.SampleTypeIdMany QMSSample records → exactly one QMSSampleType record
QMSSampleLifecycleState→QMSSampleLifecycleStateJoin on
LifecycleStateId = QMSSampleLifecycleState.StateIdMany QMSSample records → exactly one QMSSampleLifecycleState record
RegisteredByWorker→HcmWorkerJoin on
RegisteredByWorker = HcmWorker.RecIdMany QMSSample records → zero or one HcmWorker record
ScrappedByWorker→HcmWorkerJoin on
ScrappedByWorker = HcmWorker.RecIdMany QMSSample records → zero or one HcmWorker record
TestedByWorker→HcmWorkerJoin on
TestedByWorker = HcmWorker.RecIdMany QMSSample records → zero or one HcmWorker record
InventQualityOrderTable→InventQualityOrderTableJoin on
QualityOrderId = InventQualityOrderTable.QualityOrderIdMany QMSSample records → exactly one InventQualityOrderTable record
Get this data out
Tables are not exposed directly. These public entities read from QMSSample; use one of them in Power BI, Power Platform or a data management project.
QMSSampleEntity· 21 fields from this table
Need help with QMSSample in a report, an integration or a migration? Talk to Dr Dynamics.