{"title":"Codeunit 1932 Scheduled Perf. Profiler Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1932-scheduled-perf-profiler-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":1932,"name":"Scheduled Perf. Profiler Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/1932-scheduled-perf-profiler-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1932-scheduled-perf-profiler-impl/source/","path":"src/System Application/App/Performance Profiler/src/ScheduledPerfProfilerImpl.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:1934":{"name":"Perf. Prof. Activity Mapper","url":"https://jonas-paprotka.de/ref/codeunit/1934-perf-prof-activity-mapper/"},"codeunit:152":{"name":"User Permissions","url":"https://jonas-paprotka.de/ref/codeunit/152-user-permissions/"},"codeunit:3902":{"name":"Retention Policy Setup","url":"https://jonas-paprotka.de/ref/codeunit/3902-retention-policy-setup/"},"page:3901":{"name":"Retention Policy Setup Card","url":"https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/"},"codeunit:3905":{"name":"Reten. Pol. Allowed Tables","url":"https://jonas-paprotka.de/ref/codeunit/3905-reten-pol-allowed-tables/"},"table:3901":{"name":"Retention Policy Setup","url":"https://jonas-paprotka.de/ref/table/3901-retention-policy-setup/"},"table:2000000265":{"name":"Performance Profile Scheduler","url":"https://jonas-paprotka.de/ref/table/2000000265-performance-profile-scheduler/"}},"procs":[{"name":"MapActivityTypeToRecord","line":22,"kind":"procedure","params":2,"steps":[[26,"ext","codeunit",1934,"MapActivityTypeToClientType",2]]},{"name":"MapRecordToActivityType","line":29,"kind":"procedure","params":2,"steps":[[33,"ext","codeunit",1934,"MapClientTypeToActivityType",2]]},{"name":"FilterUsers","line":53,"kind":"procedure","params":3,"steps":[[60,"ext","codeunit",152,"CanManageUsersOnTenant",1]]},{"name":"ValidateScheduleCreationPermissions","line":69,"kind":"procedure","params":2,"steps":[[76,"ext","codeunit",152,"CanManageUsersOnTenant",1]]},{"name":"CreateRetentionPolicySetup","line":164,"kind":"procedure","params":1,"steps":[[169,"ext","codeunit",3902,"FindOrCreateRetentionPeriod",1],[171,"run","page",3901]]},{"name":"CreateRetentionPolicySetup","line":174,"kind":"procedure","params":2,"steps":[[182,"ext","codeunit",3905,"IsAllowedTable",1],[183,"ext","codeunit",3905,"AddAllowedTable",3],[184,"validate",3901,"Table Id"],[185,"validate",3901,"Apply to all records"],[186,"validate",3901,"Retention Period"],[187,"validate",3901,"Enabled"],[188,"write",3901,"Insert",1]]},{"name":"ValidateThreshold","line":191,"kind":"procedure","params":1,"steps":[[194,"validate",2000000265,"Profile Creation Threshold"]]}]}