{"title":"Page 1927 Detached Media Cleanup, extension points 29","url":"https://jonas-paprotka.de/ref/page/1927-detached-media-cleanup/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":"page","id":1927,"name":"Detached Media Cleanup","app":"System Application","url":"https://jonas-paprotka.de/ref/page/1927-detached-media-cleanup/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/1927-detached-media-cleanup/source/","path":"src/System Application/App/Data Administration/src/DetachedMediaCleanup.Page.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:1927":{"name":"Media Cleanup","url":"https://jonas-paprotka.de/ref/codeunit/1927-media-cleanup/"},"table:2000000184":{"name":"Tenant Media","url":"https://jonas-paprotka.de/ref/table/2000000184-tenant-media/"}},"procs":[{"name":"DeleteAllOrphans.OnAction","line":140,"kind":"trigger","steps":[[143,"ext","codeunit",1927,"ScheduleCleanupDetachedMedia",0]]},{"name":"Refresh.OnAction","line":153,"kind":"trigger","steps":[[155,"call","RefreshDetachedMedia",0]]},{"name":"Delete.OnAction","line":165,"kind":"trigger","steps":[[174,"ext","codeunit",1927,"DeleteDetachedTenantMedia",1]]},{"name":"DownloadContent.OnAction","line":185,"kind":"trigger","steps":[[187,"ext","codeunit",1927,"DownloadTenantMedia",1]]},{"name":"OnDeleteRecord","line":194,"kind":"trigger","steps":[[199,"write",2000000184,"Delete"]]},{"name":"RefreshDetachedMedia","line":207,"kind":"procedure","access":"local","params":0,"steps":[[214,"write",2000000184,"DeleteAll"],[215,"ext","codeunit",1927,"GetDetachedTenantMedia",3],[217,"ext","codeunit",1927,"GetTenantMediaFromDetachedMediaSet",3]]}]}