{"title":"Create quality inspection templates","url":"https://jonas-paprotka.de/docs/qms-quality-templates/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/qms-quality-templates, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/qms-quality-templates","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to create and configure quality inspection templates to streamline quality testing processes and ensure compliance with quality standards.","date":"2026-10-23","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Create quality inspection templates","slug":"create-quality-inspection-templates","at":0,"chars":6776},{"level":2,"title":"Typical scenarios where templates help","slug":"typical-scenarios-where-templates-help","at":698,"chars":645},{"level":2,"title":"Create a quality test","slug":"create-a-quality-test","at":1343,"chars":3022},{"level":2,"title":"Create a new template","slug":"create-a-new-template","at":4365,"chars":1441},{"level":2,"title":"Assign an inspection generation rule","slug":"assign-an-inspection-generation-rule","at":5806,"chars":305},{"level":2,"title":"Copy a template","slug":"copy-a-template","at":6111,"chars":240},{"level":2,"title":"Related information","slug":"related-information","at":6351,"chars":425}],"text":"# Create quality inspection templates\nQuality inspection templates define the measurements and attributes you want to collect during quality testing. Templates serve as the foundation for all quality tests, and contain:\n A Template Code, which is the unique identifier for the template.\n A Description that provides an idea of the purpose of the template.\n Tests and measurements, which are the individual quality measurements to collect.\n Pass/fail criteria, which are the acceptable ranges for each measurement.\nYou can create templates from scratch, or you can copy an existing template and then change the settings to suit your inspection needs. See #create-a-new-template or #copy-a-template.\n## Typical scenarios where templates help\nOne typical use is to inspect purchased materials. Some examples of tests in these inspections are dimension measurements, visual appearance checks, and material compliance verification.\nOther examples are production output inspections, where you inspect the finished goods that you produce. Some examples of tests are functional performance tests, assembly quality checks, and final dimension verification.\nTemplates are also useful for inspections when production is in-process. Some examples of tests are intermediate measurements, process parameter verification, and work-in-progress quality gates.\n## Create a quality test\nTo set up a quality test, follow these steps:\n1. Select Search (Alt+Q) in the upper-right corner, enter Quality Tests, and then choose the related link.\n1. Choose New to create a quality test.\n1. In the Code field, enter a unique identifier for the test.\n1. In the Description field, enter a short description of the measurement. For example, Example Measurement, Weight, or Dimension. This description is visible when recording inspections and appears on the Certificate of Analysis and other reports.\n1. In the Test Value Type field, choose the type of value that the inspector enters or selects. The following list describes the options.\n  Decimal or Integer for tests that allow numerical values.\n  Boolean for tests that record Yes or No.\n  Text, Date, or Date and Time for free text, a date, or a date and time.\n  Option to let the inspector choose from a predefined list. Enter the choices in the Allowable Values field, separated by commas. For example, enter `Value1,Value2,Value3` for three choices.\n  Table Lookup to build a list from the Lookup Table No., Lookup Field No., and Lookup Table Filter fields. For example, to show reason codes, use table 231 and field 1, which is the Code field. You can also add your own values to the Quality Test Lookup Values page, which uses table 20408.\n  Label to add a noneditable heading that separates lines on inspection reports.\n  Text Expression to calculate text by using the Expression Formula field.\n1. In the Allowable Values field, specify the values that an inspector can enter, not which values pass or fail. Define pass, fail, and acceptance conditions in the Condition fields in the Result conditions section instead. Keep allowable values broad enough to record failed measurements. The format depends on the Test Value Type:\n  For an integer or decimal test, enter `5..90` to allow any value in that range. Enter `800..` to allow values of at least 800, with no upper limit, or `..10` to allow values up to and including 10. Don't add a range limit that the specification doesn't require.\n  For an Option test, enter choices such as `Value1,Value2,Value3`, separated by commas without spaces around the commas. A pipe (`|`) doesn't separate choices in this field.\n  The field doesn't restrict a Table Lookup test because its values come from the configured lookup table.\n1. The Result conditions section includes pairs of Condition and Description fields for each quality result where Result Visibility is set to Promoted. The value in the Condition field depends on the Test Value Type. The following are examples for different types:\n  For integer or decimal, it can be '10..20' (range), '>=20' (greater than or equal), '<>0' (not equal to zero), '10|20|30' (equals 10, 20 or 30).\n  For text: 'A*' (starts with \"A\").\n  For date: 'TODAY..TODAY+30D' (Today through 30 days from today), '>=01/01/2026'(on or after specific date).\n> NOTE\n> You can't delete a quality test that is used by a quality inspection or inspection template.\n## Create a new template\nTo set up a quality inspection template, follow these steps.\n1. Select Search (Alt+Q) in the upper-right corner, enter Quality Inspection Templates, and then choose the related link.\n1. Choose New to create a new template.\n1. Fill in the Template Code field with a short name that indicates the purpose of the inspection. For example, enter EXAMPLE or INCOMING-PARTS.\n1. Fill in the Description field. This field often contains an elaboration of the code. For example, Example Template or Incoming Parts Inspection.\n1. In the Sample Source field, specify the size of the sample the test includes. Depending on your choice, the Sample Amount or Sample % fields display, so you can add those values. The Sample quantity in the created inspection can't exceed the Quantity (Base) and if necessary it's changed automatically on the inspection to equal the source quantity. If you leave the Sample Source field blank, the amount or percentage fields don't display.\n1. Add the tests that represent what the inspection measures.\n1. If necessary, you can override conditions from tests for specific inspection template requirements.\nWhen you add a test, the template line copies its description, unit of measure, and expression formula. Later changes to these fields on the test don't automatically update the template line. The template line looks up the test value type, allowable values, and default value from the test.\n## Assign an inspection generation rule\nThe next step is to use the Inspection Generation Rules action to create a generation rule for your template. Templates connect to automated inspection creation through inspection generation rules. See Set up inspection generation rules<qms-test-generation-rules>.\n## Copy a template\nYou can copy templates to create new templates based on their settings. Select a template, and then choose the Copy Template action to create a duplicate. You can modify the fields on the new template to suit your needs.\n## Related information\nConfiguring Quality Inspection Results<qms-configuring-grades>\nSetting Up Inspection Generation Rules<qms-test-generation-rules>\nWork with quality inspections<qms-manual-test-creation>\nQuality Management Setup and Configuration<qms-setup>\nQuality Management Overview<qms-overview>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}