Data entity
QMSFlexibleSamplingPlanLineEntity
Holds the levels of each flexible sampling plan. The key is the plan code and the level. Each line has settings such as test group, test frequency, rounds, number of fails, pass and fail action levels, skip and time span in days. It reads the plan header to show whether a level is the last one.
- Entity name
QMSFlexibleSamplingPlanLineEntity- Public entity name
FlexibleSamplingPlanLine- OData collection
FlexibleSamplingPlanLines- Category
Reference- Module
Inventory and warehouse management- Read-only
No- Data management enabled
Yes- Configuration key
InventQualityManagement- Keys
PlanCode, Level- Staging table
QMSFlexibleSamplingPlanLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/FlexibleSamplingPlanLines- Dataverse virtual table
mserp_qmsflexiblesamplingplanlineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
QMSInventFlexSamplingPlanLine· rootQMSInventFlexSamplingPlanTable· OuterJoin toQMSInventFlexSamplingPlanLine· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AreConsecutiveFailsConsideredYes/No value showing whether fails must be consecutive to count against the criteria. | EnumQMSConsecutive
| No | Yes | QMSInventFlexSamplingPlanLine.Consecutive | |
FailActionCodeAction taken on failure: none, alert, or expire AVL/alert. | Enum
| No | Yes | QMSInventFlexSamplingPlanLine.FailActionCode | |
NextLevelAfterFailLevel the plan moves to when the fail criteria are met. | IntegerQMSFailActionLevel | Yes | Yes | QMSInventFlexSamplingPlanLine.FailActionLevel | |
MaximumNumberOfFailsMaximum number of fails allowed at this level. | IntegerQMSFails | Yes | Yes | QMSInventFlexSamplingPlanLine.Fails | |
PlanCodeThe flexible sampling plan this line belongs to. | StringQMSFlexibleSamplingPlanId | Yes | Yes | QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanId | QMSInventFlexSamplingPlanLine.FlexibleSamplingPlanId |
ItemSamplingIdThe item sampling record used at this level. | StringInventItemSamplingId | Yes | Yes | InventItemSampling.InventItemSamplingId | QMSInventFlexSamplingPlanLine.ItemSamplingId |
LevelLevel number of the line in the plan. | IntegerQMSLevel | Yes | Yes | QMSInventFlexSamplingPlanLine.Level | |
NextLevelAfterPassLevel the plan moves to when the pass criteria are met. | IntegerQMSPassActionLevel | No | Yes | QMSInventFlexSamplingPlanLine.PassActionLevel | |
NumberOfRoundsAssignedNumber of test rounds assigned to the level. | IntegerQMSRounds | No | Yes | QMSInventFlexSamplingPlanLine.Rounds | |
IsQualityOrderSkippingEnabledYes/No value showing whether skipping is enabled at this level. | EnumQMSSkip
| No | Yes | QMSInventFlexSamplingPlanLine.Skip | |
QualityTestGroupIdThe test group used at this level. | StringInventTestGroupId | Yes | Yes | InventTestGroup.TestGroupId | QMSInventFlexSamplingPlanLine.TestGroupId |
NumberOfTestsPerSampleGroupNumber of tests per sample group, shown as the test frequency. | IntegerQMSTestPerSampleGroup | No | Yes | QMSInventFlexSamplingPlanLine.TestPerSampleGroup | |
TestSampleGroupSizeSize of the sample group that the test frequency is counted out of. | IntegerQMSTestSampleGroupSize | No | Yes | QMSInventFlexSamplingPlanLine.TestSampleGroupSize | |
MaximumDaysForRoundsCompletionOptional number of days within which the rounds must be finished. | IntegerQMSTimeSpanDays | No | Yes | QMSInventFlexSamplingPlanLine.TimeSpanDays | |
IsLastLevelYes or no value that shows whether this level is the last level of the flexible sampling plan. | EnumNoYesId
| No | Yes | computed |
Foreign keys (3)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
PlanCode→QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanId(key of QMSInventFlexSamplingPlanTable)Many QMSInventFlexSamplingPlanLine records → exactly one QMSInventFlexSamplingPlanTable record
QMSInventFlexSamplingPlanTable details: see QMSFlexibleSamplingPlanEntity
ItemSamplingId→InventItemSampling.InventItemSamplingId(key of InventItemSampling)Relation also requires InventItemSampling.QMSSampleInspectionMethod = QMSSampleInspectionMethod::None.
Many QMSInventFlexSamplingPlanLine records → exactly one InventItemSampling record
Not exposed by a public entity.
QualityTestGroupId→InventTestGroup.TestGroupId(key of InventTestGroup)Many QMSInventFlexSamplingPlanLine records → exactly one InventTestGroup record
InventTestGroup details: see InventQualityTestGroupEntity
Need help with QMSFlexibleSamplingPlanLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.