{"title":"Codeunit 3906 Reten. Pol. Allowed Tbl. Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/3906-reten-pol-allowed-tbl-impl/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":3906,"name":"Reten. Pol. Allowed Tbl. Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/3906-reten-pol-allowed-tbl-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/3906-reten-pol-allowed-tbl-impl/source/","path":"src/System Application/App/Retention Policy/src/Retention Policy Allowed Tables/RetenPolAllowedTblImpl.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":{"table:3903":{"name":"Retention Policy Allowed Table","url":"https://jonas-paprotka.de/ref/table/3903-retention-policy-allowed-table/"},"codeunit:3908":{"name":"Retention Policy Log","url":"https://jonas-paprotka.de/ref/codeunit/3908-retention-policy-log/"},"codeunit:417":{"name":"Tenant Information","url":"https://jonas-paprotka.de/ref/codeunit/417-tenant-information/"}},"procs":[{"name":"AddToAllowedTables","line":51,"kind":"procedure","params":7,"steps":[[62,"call","ModuleOwnsTable",2],[82,"write",3903,"Modify",1],[86,"ext","codeunit",3908,"LogInfo",2],[86,"call","LogCategory",0],[88,"ext","codeunit",3908,"LogError",3],[88,"call","LogCategory",0],[94,"write",3903,"Insert"],[98,"ext","codeunit",3908,"LogInfo",2],[98,"call","LogCategory",0],[100,"ext","codeunit",3908,"LogError",3],[100,"call","LogCategory",0]]},{"name":"ModuleOwnsTable","line":105,"kind":"procedure","access":"local","params":2,"steps":[[113,"ext","codeunit",3908,"LogWarning",2],[113,"call","LogCategory",0],[122,"ext","codeunit",417,"GetTenantId",0],[124,"ext","codeunit",3908,"LogWarning",2],[124,"call","LogCategory",0],[128,"call","IsAppAllowListed",1],[132,"ext","codeunit",3908,"LogWarning",2],[132,"call","LogCategory",0]]},{"name":"RemoveFromAllowedTables","line":139,"kind":"procedure","params":1,"steps":[[145,"ext","codeunit",3908,"LogInfo",2],[145,"call","LogCategory",0],[148,"ext","codeunit",3908,"LogInfo",2],[148,"call","LogCategory",0],[149,"write",3903,"Delete"]]},{"name":"GetDefaultDateFieldNo","line":190,"kind":"procedure","params":1,"steps":[[196,"call","IsAllowedTable",1],[201,"ext","codeunit",3908,"LogWarning",2],[201,"call","LogCategory",0]]},{"name":"GetMandatoryMinimumRetentionDays","line":207,"kind":"procedure","params":1,"steps":[[211,"call","IsAllowedTable",1]]},{"name":"CalcMinimumExpirationDate","line":217,"kind":"procedure","params":1,"steps":[[222,"call","GetMandatoryMinimumRetentionDays",1],[224,"call","GetMandatoryMinimumRetentionDays",1]]},{"name":"GetTableFilters","line":281,"kind":"procedure","params":1,"steps":[[286,"call","IsAllowedTable",1]]},{"name":"ParseTableFilter","line":297,"kind":"procedure","params":8,"steps":[[299,"call","GetTableId",1],[300,"call","GetRetentionPeriodEnum",1],[301,"call","GetRetPeriodCalc",1],[302,"call","GetDateFieldNo",1],[303,"call","GetEnabled",1],[304,"call","GetLocked",1],[305,"call","GetTableFilter",1]]},{"name":"AllowAddtoAllowedList","line":382,"kind":"procedure","access":"local","params":2,"steps":[[386,"ext","codeunit",3908,"LogInfo",2],[386,"call","LogCategory",0]]},{"name":"VerifyInsertAllowed","line":390,"kind":"procedure","params":1,"steps":[[395,"event","OnVerifyAddtoAllowedList",0],[397,"ext","codeunit",3908,"LogError",2],[397,"call","LogCategory",0]]},{"name":"AllowModifyAllowedList","line":411,"kind":"procedure","access":"local","params":2,"steps":[[415,"ext","codeunit",3908,"LogInfo",2],[415,"call","LogCategory",0]]},{"name":"VerifyModifyAllowed","line":419,"kind":"procedure","params":1,"steps":[[424,"event","OnVerifyModifyAllowedList",0],[426,"ext","codeunit",3908,"LogError",2],[426,"call","LogCategory",0]]},{"name":"SetTruncateAllowed","line":443,"kind":"procedure","params":3,"steps":[[448,"call","ModuleOwnsTable",2],[456,"write",3903,"Modify",1]]}]}