{"title":"Codeunit 9872 Security Group Upgrade, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9872-security-group-upgrade/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-05","object":{"type":"codeunit","id":9872,"name":"Security Group Upgrade","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/9872-security-group-upgrade/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9872-security-group-upgrade/source/","path":"src/System Application/App/Security Groups/src/SecurityGroupUpgrade.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:9999":{"name":"Upgrade Tag","url":"https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/"},"table:9020":{"name":"Security Group","url":"https://jonas-paprotka.de/ref/table/9020-security-group/"},"codeunit:9871":{"name":"Security Group Impl.","url":"https://jonas-paprotka.de/ref/codeunit/9871-security-group-impl/"}},"procs":[{"name":"OnUpgradePerDatabase","line":17,"kind":"trigger","steps":[[21,"ext","codeunit",9999,"HasUpgradeTag",1],[21,"call","GetOnPremSecurityGroupUpgradeTag",0],[24,"call","CreateSecurityGroups",0],[26,"ext","codeunit",9999,"SetUpgradeTag",1],[26,"call","GetOnPremSecurityGroupUpgradeTag",0]]},{"name":"CreateSecurityGroups","line":29,"kind":"procedure","params":0,"steps":[[42,"call","GenerateGroupCode",1],[43,"write",9020,"Insert"]]},{"name":"GenerateGroupCode","line":48,"kind":"procedure","access":"local","params":1,"steps":[[58,"ext","codeunit",9871,"TryGetNameById",2],[59,"ext","codeunit",9871,"GetDesirableCode",1]]},{"name":"RegisterPerCompanyTags","line":78,"kind":"procedure","access":"local","params":1,"steps":[[80,"call","GetOnPremSecurityGroupUpgradeTag",0]]}]}