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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemCodeShows whether the settings apply to one item, an item quality group or all items. | EnumInventTestItemCodeTableGroupAll (enum) | Yes | QMSSampleAssociationEntityQMSSampleAssociationProcedureEntity | |
ItemRelationThe item or item quality group the settings apply to, depending on the item code. | String (20)InventTestItemRelation | Yes | InventTable.ItemIdInventTestQualityGroup.TestQualityGroupId | QMSSampleAssociationEntityQMSSampleAssociationProcedureEntity |
ContinuousSampleTypeIdSample type used when samples are inspected by the continuous method. | StringQMSSampleTypeId | No | QMSSampleType.SampleTypeId | QMSSampleAssociationEntity |
ContinuousScrapDaysNumber of days continuous samples are kept before they can be scrapped. | IntegerQMSSampleContinuousScrapDays | No | QMSSampleAssociationEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InlineDefaultItemSamplingIdDefault item sampling for inline samples taken from production. It can be changed later. | StringInventItemSamplingId | No | InventItemSampling.InventItemSamplingId | QMSSampleAssociationEntity |
InlineDefaultTestGroupIdDefault test group for inline samples taken from production. It can be changed later. | StringInventTestGroupId | No | InventTestGroup.TestGroupId | QMSSampleAssociationEntity |
InlineSampleTypeIdSample type used when samples are inspected by the inline method. | StringQMSSampleTypeId | No | QMSSampleType.SampleTypeId | QMSSampleAssociationEntity |
InlineScrapDaysNumber of days inline samples are kept before they can be scrapped. | IntegerQMSSampleInlineScrapDays | No | QMSSampleAssociationEntity | |
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 | |
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 |
Indexes (1)
ItemCodeRelationReplacement keyUnique, alternate key.
Relations (6)
Each relation joins QMSSampleAssociation to another table on the fields shown.
InventItemSampling→InventItemSamplingJoin on
InlineDefaultItemSamplingId = InventItemSampling.InventItemSamplingIdMany QMSSampleAssociation records → exactly one InventItemSampling record
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany QMSSampleAssociation records → zero or one InventTable record
InventTestGroup→InventTestGroupJoin on
InlineDefaultTestGroupId = InventTestGroup.TestGroupIdMany QMSSampleAssociation records → exactly one InventTestGroup record
InventTestQualityGroup→InventTestQualityGroupJoin on
ItemCode = TableGroupAll::GroupId,ItemRelation = InventTestQualityGroup.TestQualityGroupIdMany QMSSampleAssociation records → zero or one InventTestQualityGroup record
InlineSampleType→QMSSampleTypeJoin on
InlineSampleTypeId = QMSSampleType.SampleTypeIdMany QMSSampleAssociation records → zero or one QMSSampleType record
ContinuousSampleType→QMSSampleTypeJoin on
ContinuousSampleTypeId = QMSSampleType.SampleTypeIdMany 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.
QMSSampleAssociationEntity· 8 fields from this tableQMSSampleAssociationProcedureEntity· 2 fields from this table
Need help with QMSSampleAssociation in a report, an integration or a migration? Talk to Dr Dynamics.