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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SampleIdUnique ID of the sample.String (20)
QMSSampleId
YesQMSSampleEntity
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
ExpireDateDate from which the sample may be scrapped, set from registration date plus scrap days.Date
QMSSampleExpireDate
NoQMSSampleEntity
InventDimIdInventory dimension combination linked to the sample.String (20)
InventDimId
YesInventDim.inventDimIdQMSSampleEntity
InventTransIdLot ID of the inventory transaction the sample relates to.String (20)
InventTransId
YesInventTransOrigin.InventTransIdQMSSampleEntity
ItemIdItem the sample was taken from.String (20)
ItemId
YesInventTable.ItemIdQMSSampleEntity
ItemSamplingIdItem sampling record linked to the sample.String
InventItemSamplingId
YesInventItemSampling.InventItemSamplingIdQMSSampleEntity
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
NoQMSInventCalibrationLabelLayout.LabelLayoutIdQMSSampleEntity
LifecycleStateIdCurrent lifecycle state of the sample.String
QMSSampleLifecycleStateId
NoQMSSampleLifecycleState.StateIdQMSSampleEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProdIdProduction order the sample comes from.String (20)
ProdId
YesProdTable.ProdIdQMSSampleEntity
QtyQuantity of the sample.Real
Qty
NoQMSSampleEntity
QualityOrderIdQuality order linked to the sample.String (20)
InventQualityOrderId
NoInventQualityOrderTable.QualityOrderIdQMSSampleEntity
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
RegisteredByWorkerWorker who registered the sample.Int64
QMSSampleRegisteredByWorker
NoHcmWorker.RecIdQMSSampleEntity
RegisteredDateTimeDate and time the sample was registered.UtcDateTime
QMSSampleRegisteredDateTime
NoQMSSampleEntity
SampleInspectionMethodHow the sample is inspected: none, inline process, continuous process or both.Enum
QMSSampleInspectionMethod (enum)
NoQMSSampleEntity
SampleTypeIdSample type, which sets how the sample is inspected and its allowed lifecycle states.String
QMSSampleTypeId
NoQMSSampleType.SampleTypeIdQMSSampleEntity
ScrappedByWorkerWorker who set the sample to the scrapped state.Int64
QMSSampleScrappedByWorker
NoHcmWorker.RecIdQMSSampleEntity
ScrappedDateTimeDate and time the sample was scrapped.UtcDateTime
QMSSampleScrappedDateTime
NoQMSSampleEntity
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
TestedByWorkerWorker who tested the sample. After repeat tests it holds the latest one.Int64
QMSSampleTestedByWorker
NoHcmWorker.RecIdQMSSampleEntity
TestedDateTimeDate and time the sample was tested.UtcDateTime
QMSSampleTestedDateTime
NoQMSSampleEntity
TestGroupIdTest group used for the sample.String
InventTestGroupId
YesInventTestGroup.TestGroupIdQMSSampleEntity
UnitIdUnit of measure for the sample quantity.String
UnitOfMeasureSymbol
NoQMSSampleEntity

Indexes (2)

Relations (13)

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

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many QMSSample records → exactly one InventTable record

  • ProdTable → ProdTable

    Join on ProdId = ProdTable.ProdId

    Many QMSSample records → exactly one ProdTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Zero or one QMSSample record → exactly one InventTransOrigin record

  • InventItemSampling → InventItemSampling

    Join on ItemSamplingId = InventItemSampling.InventItemSamplingId

    Many QMSSample records → exactly one InventItemSampling record

  • InventTestGroup → InventTestGroup

    Join on TestGroupId = InventTestGroup.TestGroupId

    Many QMSSample records → exactly one InventTestGroup record

  • InventDim → InventDim

    Join on inventDimId = InventDim.inventDimId

    Many QMSSample records → exactly one InventDim record

  • QMSInventCalibrationLabelLayout → QMSInventCalibrationLabelLayout

    Join on LabelLayoutId = QMSInventCalibrationLabelLayout.LabelLayoutId

    Many QMSSample records → exactly one QMSInventCalibrationLabelLayout record

  • QMSSampleType → QMSSampleType

    Join on SampleTypeId = QMSSampleType.SampleTypeId

    Many QMSSample records → exactly one QMSSampleType record

  • QMSSampleLifecycleState → QMSSampleLifecycleState

    Join on LifecycleStateId = QMSSampleLifecycleState.StateId

    Many QMSSample records → exactly one QMSSampleLifecycleState record

  • RegisteredByWorker → HcmWorker

    Join on RegisteredByWorker = HcmWorker.RecId

    Many QMSSample records → zero or one HcmWorker record

  • ScrappedByWorker → HcmWorker

    Join on ScrappedByWorker = HcmWorker.RecId

    Many QMSSample records → zero or one HcmWorker record

  • TestedByWorker → HcmWorker

    Join on TestedByWorker = HcmWorker.RecId

    Many QMSSample records → zero or one HcmWorker record

  • InventQualityOrderTable → InventQualityOrderTable

    Join on QualityOrderId = InventQualityOrderTable.QualityOrderId

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

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

Email sales@drdynamics.co.uk