Table

QMSSampleTypeStateAssignment

Sample type state assignments

Assigns lifecycle states to sample types. The key is the lifecycle state plus the sample type. Each row has a line number for the state within that sample type.

Table name
QMSSampleTypeStateAssignment
Module
Inventory
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
InventQualityManagement
Primary index
None
Replacement key
SampleTypeLifecycleStateIdx
Key fields
SampleLifecycleState, SampleType
Model
AdvancedQualityManagement

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SampleLifecycleStateSample lifecycle state in the assignment. Points to a sample lifecycle state record.Int64
QMSSampleLifecycleStateRecId
YesQMSSampleLifecycleState.RecIdQMSSampleTypeStateAssignmentEntity
SampleTypeSample type in the assignment. Points to a sample type record.Int64
QMSSampleTypeRecId
YesQMSSampleType.RecIdQMSSampleTypeStateAssignmentEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LineThe position number of the lifecycle state within this sample type.Integer
Line
NoQMSSampleTypeStateAssignmentEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
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 (2)

Relations (2)

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

  • SampleLifecycleState → QMSSampleLifecycleState

    Join on SampleLifecycleState = QMSSampleLifecycleState.RecId

    Many QMSSampleTypeStateAssignment records → exactly one QMSSampleLifecycleState record

  • SampleType → QMSSampleType

    Join on SampleType = QMSSampleType.RecId

    Many QMSSampleTypeStateAssignment records → exactly one QMSSampleType record

Get this data out

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

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

Email sales@drdynamics.co.uk