Table

QMSInventFlexSamplingPlanLine

Flexible sampling plan lines

Holds the levels of a flexible sampling plan. Each line sets the rounds, test frequency, pass and fail criteria and which level comes next. The key is the plan code plus the level, and it links to the plan, an item sampling and a test group.

Table name
QMSInventFlexSamplingPlanLine
Module
Cross-module and platform
Table group
TransactionLine
Table type
Regular
Data per company
Yes
Configuration key
InventQualityManagement
Primary index
InventFlexSamplingLineIdx
Replacement key
InventFlexSamplingLineIdx
Key fields
FlexibleSamplingPlanId, Level
Model
AdvancedQualityManagement

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
FlexibleSamplingPlanIdThe flexible sampling plan this line belongs to.String
QMSFlexibleSamplingPlanId
YesQMSInventFlexSamplingPlanTable.FlexibleSamplingPlanIdQMSFlexibleSamplingPlanLineEntity
LevelLevel number of the line in the plan.Integer
QMSLevel
YesQMSFlexibleSamplingPlanLineEntity
ConsecutiveYes/No value showing whether fails must be consecutive to count against the criteria.Enum
QMSConsecutive
NoYes (enum)
NoQMSFlexibleSamplingPlanLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FailActionCodeAction taken on failure: none, alert, or expire AVL/alert.Enum
QMSFailActionCode (enum)
NoQMSFlexibleSamplingPlanLineEntity
FailActionLevelLevel the plan moves to when the fail criteria are met.Integer
QMSFailActionLevel
YesQMSFlexibleSamplingPlanLineEntity
FailsMaximum number of fails allowed at this level.Integer
QMSFails
YesQMSFlexibleSamplingPlanLineEntity
ItemSamplingIdThe item sampling record used at this level.String
InventItemSamplingId
YesInventItemSampling.InventItemSamplingIdQMSFlexibleSamplingPlanLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PassActionLevelLevel the plan moves to when the pass criteria are met.Integer
QMSPassActionLevel
NoQMSFlexibleSamplingPlanLineEntity
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
RoundsNumber of test rounds assigned to the level.Integer
QMSRounds
NoQMSFlexibleSamplingPlanLineEntity
SkipYes/No value showing whether skipping is enabled at this level.Enum
QMSSkip
NoYes (enum)
NoQMSFlexibleSamplingPlanLineEntity
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
TestGroupIdThe test group used at this level.String
InventTestGroupId
YesInventTestGroup.TestGroupIdQMSFlexibleSamplingPlanLineEntity
TestPerSampleGroupNumber of tests per sample group, shown as the test frequency.Integer
QMSTestPerSampleGroup
NoQMSFlexibleSamplingPlanLineEntity
TestSampleGroupSizeSize of the sample group that the test frequency is counted out of.Integer
QMSTestSampleGroupSize
NoQMSFlexibleSamplingPlanLineEntity
TimeSpanDaysOptional number of days within which the rounds must be finished.Integer
QMSTimeSpanDays
NoQMSFlexibleSamplingPlanLineEntity

Indexes (3)

Relations (3)

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

  • InventFlexSamplingPlanTable → QMSInventFlexSamplingPlanTable

    Join on FlexibleSamplingPlanId = QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanId

    Many QMSInventFlexSamplingPlanLine records → exactly one QMSInventFlexSamplingPlanTable record

  • InventItemSampling → InventItemSampling

    Join on ItemSamplingId = InventItemSampling.InventItemSamplingId, InventItemSampling.QMSSampleInspectionMethod = QMSSampleInspectionMethod::None

    Many QMSInventFlexSamplingPlanLine records → exactly one InventItemSampling record

  • InventTestGoup → InventTestGroup

    Join on TestGroupId = InventTestGroup.TestGroupId

    Many QMSInventFlexSamplingPlanLine records → exactly one InventTestGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk