BeyondERP.Newsletter
Menu

Setup page · Inventory management

Flexible sampling plans

A setup page where you define flexible sampling plans, which set how many units of a lot are inspected and change that over time based on test results.

Used by
Quality control clerk, Quality control manager
Business process
Create flexible sampling plans in Dynamics 365 Supply Chain Management
Menu item
QMSInventFlexSamplingPlan
Main table
QMSInventFlexSamplingPlanTable
Data entity
QMSFlexibleSamplingPlanEntity
Setup steps
1 on this page
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA setup page where you define flexible sampling plans, which set how many units of a lot are inspected and change that over time based on test results.
What you do hereUse this page to vary the item sampling and test group by level and to skip lots, so testing effort follows the supplier's or process's track record.
ExampleFor example, a quality manager inspects 10 units from a long-time supplier with very good quality and then skips the next 10 units.
Flexible sampling plans page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Step by step, with screenshots

Set up Flexible sampling plans1 screen

Use this page to vary the item sampling and test group by level and to skip lots, so testing effort follows the supplier's or process's track record.

  1. Screen 1

    Create a flexible sampling plan

    Go to Inventory management > Setup > Quality control > Flexible sampling plans

    1. Make sure the item sampling and test groups that each level uses exist
    2. Select New
    3. Enter the flexible sampling plan code and a description
    4. Optionally choose how rounds are consolidated
    5. Select Save
    6. Under Details, select Add for each level and choose its item sampling, test group, rounds and the levels to move to on pass or fail
    7. Turn on Approved when the plan is ready to use
    1Flexible sampling plan codeBEAT-FSP
    2DescriptionFlexible sampling plan
    3ApprovedNo
    4Consolidate rounds byNone
    Create a flexible sampling plan (zoomed on the outlined fields)
    Show the full screenCreate a flexible sampling plan
    page title tab to open what to set or check

Steps from Microsoft

  1. Go to Inventory management > Setup > Quality control > Flexible sampling plans.
  2. On the Action Pane, select Add.
  3. Enter the Flexible sampling plan code and Name.
  4. Select the Alert role to notify and the Last level of the plan.
  5. On the Details FastTab, add a line for each level with its Item sampling and Test group.
  6. Set the Rounds and, optionally, the Time span (days) for each level.
  7. To skip lots, select Skip and enter the Test frequency and Out of frequency.
  8. Set the Number of fails, Fail action level and Fail action code.
  9. Set the plan to Approved.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
Flexible sampling plan codeThe name of the sampling plan.Microsoft Learn REDUCEDFlexibleSamplingPlanId
Alert roleThe security role notified when a set number of failures is reached for a level.Microsoft Learn
Last levelThe level number of the last activity in the plan.Microsoft Learn LastLevel
LevelThe level number of the activity; levels are processed in descending order.Microsoft Learn Level
Item samplingSets the sampling size of the quality order at this level.Microsoft Learn ItemSamplingId
Test groupSets the tests on the quality order at this level.Microsoft Learn TestGroupId
RoundsHow many rounds must pass at this level before testing moves to the next level.Microsoft Learn
Time span (days)The number of days within which the rounds must be completed.Microsoft Learn TimeSpanDays
SkipTurns on skip lot sampling, where only some lots are inspected.Microsoft Learn Skip
Number of failsHow many failures are allowed before the plan goes back to an earlier level.Microsoft Learn Fails
Fail action levelThe level that testing returns to when the failure limit is reached.Microsoft Learn FailActionLevel
DescriptionA short description of the flexible sampling plan.Microsoft Learn Flexible sampling planDescription
ApprovedWhether the plan is in the approved state.Microsoft Learn NoApproved
Consolidate rounds byNoneConsolidateRoundsBy

Test checklist

  1. Create a plan: level 1 with 50% sampling and 2 rounds, level 2 as Last level with 10% sampling; approve it.
  2. Set Flexible sampling = Yes with the plan on a purchase quality association.
  3. Pass two receipts and check the third quality order uses the level 2 sampling.
  4. Fail the number of times set in Number of fails and check the plan returns to the Fail action level; check View activities shows the history.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Flexible sampling plansLevels that move from heavier to lighter sampling, with Rounds on every level except the Last level, and Number of fails with a Fail action level to step back after failuresRounds decide when testing moves on; the last level has no rounds so it continues until failures send the plan back to a stricter level.Expecting to delete a plan after use: a plan can't be deleted once quality orders use it or activities are tracked against it.

Feature management and licence

Feature to turn onAdvanced quality management (Mandatory, on by default)

Microsoft Learn

Solution architect

5Design impact

Can it be undoneHard to reverse: A used plan can't be deleted. To stop it, set Flexible sampling to No or choose another plan on the quality association. Microsoft Learn
If you change it laterA plan can't be deleted once quality orders use it or activities are tracked against it. Microsoft Learn
Technical architect

6Technical

Menu itemQMSInventFlexSamplingPlan Checked in Dynamics 365
FormQMSInventFlexSamplingPlan Checked in Dynamics 365
TableQMSInventFlexSamplingPlanTableShown as “Flexible sampling plans” in Record infoChecked in Dynamics 365
Data entitiesQMSFlexibleSamplingPlanEntityFlexible sampling plans Checked in Dynamics 365
Who can open itPrivilegesMaintain information about flexible sampling plans and activities QMSInventFlexSamplingInfoMaintainDutiesView and maintain flexible sampling information QMSInventFlexSamplingInfoMaintain
2 security rolesQuality control clerk InventQualityControlClerkQuality control manager InventQualityControlManager
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itQuality control manager InventQualityControlManagerQuality control clerk InventQualityControlClerkGive people one of these roles. On this system, 2 roles can open this page.Checked in Dynamics 365
Actions on the pageOptionsChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=QMSInventFlexSamplingPlan
Integrate withQMSFlexibleSamplingPlanEntity data entity Checked in Dynamics 365
Everyone

8Sources