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 · root
  • QMSInventFlexSamplingPlanTable · OuterJoin to QMSInventFlexSamplingPlanLine · read-only

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AreConsecutiveFailsConsideredYes/No value showing whether fails must be consecutive to count against the criteria.Enum
QMSConsecutive
NoYes

Platform enum: values not in the metadata extract.

NoYesQMSInventFlexSamplingPlanLine.Consecutive
FailActionCodeAction taken on failure: none, alert, or expire AVL/alert.Enum
QMSFailActionCode
  • None 0
  • Alert 1
  • Expire 2
NoYesQMSInventFlexSamplingPlanLine.FailActionCode
NextLevelAfterFailLevel the plan moves to when the fail criteria are met.Integer
QMSFailActionLevel
YesYesQMSInventFlexSamplingPlanLine.FailActionLevel
MaximumNumberOfFailsMaximum number of fails allowed at this level.Integer
QMSFails
YesYesQMSInventFlexSamplingPlanLine.Fails
PlanCodeThe flexible sampling plan this line belongs to.String
QMSFlexibleSamplingPlanId
YesYesQMSInventFlexSamplingPlanTable.FlexibleSamplingPlanIdQMSInventFlexSamplingPlanLine.FlexibleSamplingPlanId
ItemSamplingIdThe item sampling record used at this level.String
InventItemSamplingId
YesYesInventItemSampling.InventItemSamplingIdQMSInventFlexSamplingPlanLine.ItemSamplingId
LevelLevel number of the line in the plan.Integer
QMSLevel
YesYesQMSInventFlexSamplingPlanLine.Level
NextLevelAfterPassLevel the plan moves to when the pass criteria are met.Integer
QMSPassActionLevel
NoYesQMSInventFlexSamplingPlanLine.PassActionLevel
NumberOfRoundsAssignedNumber of test rounds assigned to the level.Integer
QMSRounds
NoYesQMSInventFlexSamplingPlanLine.Rounds
IsQualityOrderSkippingEnabledYes/No value showing whether skipping is enabled at this level.Enum
QMSSkip
NoYes

Platform enum: values not in the metadata extract.

NoYesQMSInventFlexSamplingPlanLine.Skip
QualityTestGroupIdThe test group used at this level.String
InventTestGroupId
YesYesInventTestGroup.TestGroupIdQMSInventFlexSamplingPlanLine.TestGroupId
NumberOfTestsPerSampleGroupNumber of tests per sample group, shown as the test frequency.Integer
QMSTestPerSampleGroup
NoYesQMSInventFlexSamplingPlanLine.TestPerSampleGroup
TestSampleGroupSizeSize of the sample group that the test frequency is counted out of.Integer
QMSTestSampleGroupSize
NoYesQMSInventFlexSamplingPlanLine.TestSampleGroupSize
MaximumDaysForRoundsCompletionOptional number of days within which the rounds must be finished.Integer
QMSTimeSpanDays
NoYesQMSInventFlexSamplingPlanLine.TimeSpanDays
IsLastLevelYes or no value that shows whether this level is the last level of the flexible sampling plan.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed

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.

Email sales@drdynamics.co.uk