Codeunit 1927 Media Cleanup

System Application, System.DataAdministration

Source AL, 112 lines

src/System Application/App/Data Administration/src/MediaCleanup.Codeunit.allines 13 to 28 of 112, Copyright (c) Microsoft Corporation. MIT

codeunit 1927 "Media Cleanup"{    Access = Public;    var        MediaCleanupImpl: Codeunit "Media Cleanup Impl.";    /// <summary>    /// Returns a list of detached tenant media. This media may be detached by itself or have an detached Media Set pointing to them.    /// </summary>    /// <param name="TempTenantMedia">The detached media. Must be a temporary table.</param>    /// <param name="LoadMediaContent">Whether to copy over all media content. This may cause the call to be very expensive.</param>    /// <returns>Whether all detached media were loaded into the Tenant Media Record. To prevent excessive waiting times, at most 10.000 records are loaded.</returns>    procedure GetDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean) AllDetachedMediaLoaded: Boolean    begin        MediaCleanupImpl.GetDetachedTenantMedia(TempTenantMedia, LoadMediaContent, 10000);

All 112 lines

Public procedures 9 in 29

GetDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean): Booleannew in 22
GetDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean; RecordLimit: Integer): Booleannew in 22
GetTenantMediaFromDetachedMediaSet(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean): Booleannew in 22
GetTenantMediaFromDetachedMediaSet(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean; RecordLimit: Integer): Booleannew in 22
DownloadTenantMedia(MediaId: Guid): Booleannew in 22
DeleteDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary)new in 22

All 9 procedures