Table

QMSSampleAssociation

Sample associations

Defines sample settings for an item, an item quality group or all items. It names the sample types, default item sampling and test group for inline and continuous inspection. It also gives the scrap periods in days. Procedures are attached through a separate table.

Table name
QMSSampleAssociation
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
InventQualityManagement
Primary index
None
Replacement key
ItemCodeRelation
Key fields
ItemCode, ItemRelation
Model
AdvancedQualityManagement

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemCodeShows whether the settings apply to one item, an item quality group or all items.Enum
InventTestItemCode
TableGroupAll (enum)
YesQMSSampleAssociationEntityQMSSampleAssociationProcedureEntity
ItemRelationThe item or item quality group the settings apply to, depending on the item code.String (20)
InventTestItemRelation
YesInventTable.ItemIdInventTestQualityGroup.TestQualityGroupIdQMSSampleAssociationEntityQMSSampleAssociationProcedureEntity
ContinuousSampleTypeIdSample type used when samples are inspected by the continuous method.String
QMSSampleTypeId
NoQMSSampleType.SampleTypeIdQMSSampleAssociationEntity
ContinuousScrapDaysNumber of days continuous samples are kept before they can be scrapped.Integer
QMSSampleContinuousScrapDays
NoQMSSampleAssociationEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InlineDefaultItemSamplingIdDefault item sampling for inline samples taken from production. It can be changed later.String
InventItemSamplingId
NoInventItemSampling.InventItemSamplingIdQMSSampleAssociationEntity
InlineDefaultTestGroupIdDefault test group for inline samples taken from production. It can be changed later.String
InventTestGroupId
NoInventTestGroup.TestGroupIdQMSSampleAssociationEntity
InlineSampleTypeIdSample type used when samples are inspected by the inline method.String
QMSSampleTypeId
NoQMSSampleType.SampleTypeIdQMSSampleAssociationEntity
InlineScrapDaysNumber of days inline samples are kept before they can be scrapped.Integer
QMSSampleInlineScrapDays
NoQMSSampleAssociationEntity
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
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

Indexes (1)

Relations (6)

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

  • InventItemSampling → InventItemSampling

    Join on InlineDefaultItemSamplingId = InventItemSampling.InventItemSamplingId

    Many QMSSampleAssociation records → exactly one InventItemSampling record

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many QMSSampleAssociation records → zero or one InventTable record

  • InventTestGroup → InventTestGroup

    Join on InlineDefaultTestGroupId = InventTestGroup.TestGroupId

    Many QMSSampleAssociation records → exactly one InventTestGroup record

  • InventTestQualityGroup → InventTestQualityGroup

    Join on ItemCode = TableGroupAll::GroupId, ItemRelation = InventTestQualityGroup.TestQualityGroupId

    Many QMSSampleAssociation records → zero or one InventTestQualityGroup record

  • InlineSampleType → QMSSampleType

    Join on InlineSampleTypeId = QMSSampleType.SampleTypeId

    Many QMSSampleAssociation records → zero or one QMSSampleType record

  • ContinuousSampleType → QMSSampleType

    Join on ContinuousSampleTypeId = QMSSampleType.SampleTypeId

    Many QMSSampleAssociation records → zero or one QMSSampleType record

Get this data out

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

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

Email sales@drdynamics.co.uk