{"title":"Codeunit 3997 Retention Policy JQ, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/3997-retention-policy-jq/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":3997,"name":"Retention Policy JQ","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/3997-retention-policy-jq/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/3997-retention-policy-jq/source/","path":"src/Layers/W1/BaseApp/System/RetentionPolicy/RetentionPolicyJQ.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:3997":{"name":"Retention Policy JQ","url":"https://jonas-paprotka.de/ref/codeunit/3997-retention-policy-jq/"},"codeunit:3908":{"name":"Retention Policy Log","url":"https://jonas-paprotka.de/ref/codeunit/3908-retention-policy-log/"},"codeunit:3910":{"name":"Apply Retention Policy","url":"https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"}},"procs":[{"name":"OnRun","line":22,"kind":"trigger","steps":[[28,"ext","codeunit",3997,"SetSessionId",1],[29,"ext","codeunit",3908,"LogInfo",2],[31,"run","codeunit",3910],[33,"ext","codeunit",3908,"LogInfo",2]]},{"name":"ScheduleJobQueueEntryOnApplyRetentionPolicyRecordLimitExceeded","line":37,"kind":"procedure","access":"local","params":3,"steps":[[43,"ext","codeunit",3908,"LogInfo",2],[48,"ext","codeunit",3908,"LogInfo",2],[53,"ext","codeunit",3908,"LogInfo",2],[58,"ext","codeunit",3908,"LogWarning",2],[62,"ext","codeunit",3908,"LogInfo",2],[69,"ext","table",472,"ScheduleJobQueueEntryForLater",4],[73,"ext","table",472,"Restart",0]]}]}