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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FlexibleSamplingPlanIdThe flexible sampling plan this line belongs to. | StringQMSFlexibleSamplingPlanId | Yes | QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanId | QMSFlexibleSamplingPlanLineEntity |
LevelLevel number of the line in the plan. | IntegerQMSLevel | Yes | QMSFlexibleSamplingPlanLineEntity | |
ConsecutiveYes/No value showing whether fails must be consecutive to count against the criteria. | EnumQMSConsecutiveNoYes (enum) | No | QMSFlexibleSamplingPlanLineEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FailActionCodeAction taken on failure: none, alert, or expire AVL/alert. | EnumQMSFailActionCode (enum) | No | QMSFlexibleSamplingPlanLineEntity | |
FailActionLevelLevel the plan moves to when the fail criteria are met. | IntegerQMSFailActionLevel | Yes | QMSFlexibleSamplingPlanLineEntity | |
FailsMaximum number of fails allowed at this level. | IntegerQMSFails | Yes | QMSFlexibleSamplingPlanLineEntity | |
ItemSamplingIdThe item sampling record used at this level. | StringInventItemSamplingId | Yes | InventItemSampling.InventItemSamplingId | QMSFlexibleSamplingPlanLineEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PassActionLevelLevel the plan moves to when the pass criteria are met. | IntegerQMSPassActionLevel | No | QMSFlexibleSamplingPlanLineEntity | |
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 | |
RoundsNumber of test rounds assigned to the level. | IntegerQMSRounds | No | QMSFlexibleSamplingPlanLineEntity | |
SkipYes/No value showing whether skipping is enabled at this level. | EnumQMSSkipNoYes (enum) | No | QMSFlexibleSamplingPlanLineEntity | |
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 | |
TestGroupIdThe test group used at this level. | StringInventTestGroupId | Yes | InventTestGroup.TestGroupId | QMSFlexibleSamplingPlanLineEntity |
TestPerSampleGroupNumber of tests per sample group, shown as the test frequency. | IntegerQMSTestPerSampleGroup | No | QMSFlexibleSamplingPlanLineEntity | |
TestSampleGroupSizeSize of the sample group that the test frequency is counted out of. | IntegerQMSTestSampleGroupSize | No | QMSFlexibleSamplingPlanLineEntity | |
TimeSpanDaysOptional number of days within which the rounds must be finished. | IntegerQMSTimeSpanDays | No | QMSFlexibleSamplingPlanLineEntity |
Indexes (3)
InventFlexSamplingLineIdxPrimary indexReplacement keyUnique, alternate key.
InventTestGroupIdxNot unique.
InventItemSamplingIdxNot unique.
Relations (3)
Each relation joins QMSInventFlexSamplingPlanLine to another table on the fields shown.
InventFlexSamplingPlanTable→QMSInventFlexSamplingPlanTableJoin on
FlexibleSamplingPlanId = QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanIdMany QMSInventFlexSamplingPlanLine records → exactly one QMSInventFlexSamplingPlanTable record
InventItemSampling→InventItemSamplingJoin on
ItemSamplingId = InventItemSampling.InventItemSamplingId,InventItemSampling.QMSSampleInspectionMethod = QMSSampleInspectionMethod::NoneMany QMSInventFlexSamplingPlanLine records → exactly one InventItemSampling record
InventTestGoup→InventTestGroupJoin on
TestGroupId = InventTestGroup.TestGroupIdMany 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.
QMSFlexibleSamplingPlanLineEntity· 14 fields from this table
Need help with QMSInventFlexSamplingPlanLine in a report, an integration or a migration? Talk to Dr Dynamics.