{"title":"Codeunit 20409 Qlty. Result Condition Mgmt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20409-qlty-result-condition-mgmt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-29","object":{"type":"codeunit","id":20409,"name":"Qlty. Result Condition Mgmt.","app":"Quality Management","url":"https://jonas-paprotka.de/ref/codeunit/20409-qlty-result-condition-mgmt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20409-qlty-result-condition-mgmt/source/","path":"src/Apps/W1/Quality Management/app/src/Configuration/Result/QltyResultConditionMgmt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:20412":{"name":"Qlty. I. Result Condit. Conf.","url":"https://jonas-paprotka.de/ref/table/20412-qlty-i-result-condit-conf/"},"table:20401":{"name":"Qlty. Test","url":"https://jonas-paprotka.de/ref/table/20401-qlty-test/"},"codeunit:20416":{"name":"Qlty. Expression Mgmt.","url":"https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/"}},"procs":[{"name":"PromptUpdateTemplatesFromTestsIfApplicable","line":36,"kind":"procedure","access":"internal","params":1,"steps":[[53,"ext","codeunit",27,"GetResponseOrDefault",1],[58,"call","CopyResultConditionsFromTestToTemplateLine",6]]},{"name":"PromptUpdateTestsFromResultIfApplicable","line":73,"kind":"procedure","access":"internal","params":1,"steps":[[80,"ext","codeunit",27,"GetResponseOrDefault",1],[83,"call","OverwriteExistingTestConditionsWithResultCondition",1]]},{"name":"CopyResultConditionsFromTestToTemplateLine","line":107,"kind":"procedure","access":"local","params":6,"steps":[[128,"call","CopyResultConditionsFromDefaultToTest",1],[149,"write",20412,"Insert"],[162,"write",20412,"Modify"]]},{"name":"CopyResultConditionsFromTemplateLineToTemplateLine","line":174,"kind":"procedure","params":2,"steps":[[207,"write",20412,"Insert"],[212,"write",20412,"Modify"]]},{"name":"CopyResultConditionsFromTemplateToInspection","line":222,"kind":"procedure","access":"internal","params":2,"steps":[[258,"write",20412,"Insert"],[261,"write",20412,"Modify"]]},{"name":"CopyGradeConditionsFromDefaultToAllTemplates","line":272,"kind":"procedure","access":"internal","params":0,"steps":[[277,"ext","codeunit",27,"GetResponseOrDefault",1],[287,"call","CopyResultConditionsFromTestToTemplateLine",4]]},{"name":"CopyResultConditionsFromDefaultToTest","line":314,"kind":"procedure","access":"internal","params":2,"steps":[[319,"call","InternalCopyResultConditionsFromDefaultToTestSpecificType",5]]},{"name":"OverwriteExistingTestConditionsWithResultCondition","line":326,"kind":"procedure","access":"local","params":1,"steps":[[334,"call","InternalCopyResultConditionsFromDefaultToTest",4]]},{"name":"InternalCopyResultConditionsFromDefaultToTest","line":345,"kind":"procedure","access":"local","params":4,"steps":[[352,"call","InternalCopyResultConditionsFromDefaultToTestSpecificType",5]]},{"name":"InternalCopyResultConditionsFromDefaultToTestSpecificType","line":363,"kind":"procedure","access":"local","params":5,"steps":[[380,"ext","table",20401,"IsNumericFieldType",0],[403,"write",20412,"Insert"],[413,"validate",20412,"Condition"],[417,"write",20412,"Modify"]]},{"name":"GetPromotedResultsForTest","line":431,"kind":"procedure","access":"internal","params":6,"steps":[[444,"call","CopyResultConditionsFromDefaultToTest",1],[446,"call","GetPromotedResults",6]]},{"name":"GetPromotedResultsForTemplateLine","line":459,"kind":"procedure","access":"internal","params":6,"steps":[[484,"call","CopyResultConditionsFromTestToTemplateLine",4],[486,"call","GetPromotedResults",6],[488,"call","GetDefaultPromotedResults",6]]},{"name":"GetDefaultPromotedResults","line":502,"kind":"procedure","access":"internal","params":6,"steps":[[520,"call","GetMaxResultConditions",0]]},{"name":"GetPromotedResultsForInspectionLine","line":556,"kind":"procedure","access":"internal","params":6,"steps":[[585,"call","CopyResultConditionsFromTemplateToInspection",2],[587,"call","GetPromotedResults",8]]},{"name":"GetPromotedResults","line":626,"kind":"procedure","access":"local","params":8,"steps":[[646,"call","GetMaxResultConditions",0],[675,"ext","codeunit",20416,"EvaluateTextExpression",3]]}]}