{"title":"Codeunit 3324 PA Email Cleanup Scheduler, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/3324-pa-email-cleanup-scheduler/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":3324,"name":"PA Email Cleanup Scheduler","app":"Payables Agent","url":"https://jonas-paprotka.de/ref/codeunit/3324-pa-email-cleanup-scheduler/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/3324-pa-email-cleanup-scheduler/source/","path":"src/Apps/W1/PayablesAgent/app/EmailStorageCleanup/PAEmailCleanupScheduler.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:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:3320":{"name":"PA Email Cleanup Setup","url":"https://jonas-paprotka.de/ref/table/3320-pa-email-cleanup-setup/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"page:673":{"name":"Job Queue Entry Card","url":"https://jonas-paprotka.de/ref/page/673-job-queue-entry-card/"}},"procs":[{"name":"Activate","line":34,"kind":"procedure","params":1,"steps":[[40,"call","IsRunning",0],[44,"call","CancelCleanupJob",0],[50,"call","PrepareCleanupJobEntry",2],[51,"run","codeunit",453],[53,"ext","table",3320,"GetSingleton",0],[55,"write",3320,"Modify"]]},{"name":"CancelCleanupJob","line":58,"kind":"procedure","params":0,"steps":[[63,"call","TryGetCleanupEntry",1],[64,"ext","table",472,"Cancel",0],[66,"ext","table",3320,"GetSingleton",0],[68,"write",3320,"Modify"]]},{"name":"IsScheduled","line":86,"kind":"procedure","params":0,"steps":[[90,"call","TryGetCleanupEntry",1]]},{"name":"IsRunning","line":95,"kind":"procedure","params":0,"steps":[[99,"call","TryGetCleanupEntry",1]]},{"name":"GetLastError","line":104,"kind":"procedure","params":0,"steps":[[108,"call","TryGetCleanupEntry",1]]},{"name":"GetScheduledAt","line":118,"kind":"procedure","params":0,"steps":[[124,"call","TryGetCleanupEntry",1]]},{"name":"GetStatusText","line":129,"kind":"procedure","params":0,"steps":[[133,"call","TryGetCleanupEntry",1]]},{"name":"OpenJobQueueCard","line":151,"kind":"procedure","params":0,"steps":[[155,"call","TryGetCleanupEntry",1],[157,"run","page",673]]}]}