Table of Contents

Codeunit "Media Cleanup"

ID 1927
Namespace: System.DataAdministration

Provides an interface for cleaning up Media

Properties

Name Value
Access Public

Methods

GetDetachedTenantMedia

procedure GetDetachedTenantMedia(TempTenantMedia: __MissingTypeSymbol__, LoadMediaContent: Boolean): Boolean

Parameters

Name Type Description
TempTenantMedia __MissingTypeSymbol__
LoadMediaContent Boolean

Returns

Type Description
Boolean

GetDetachedTenantMedia

procedure GetDetachedTenantMedia(TempTenantMedia: __MissingTypeSymbol__, LoadMediaContent: Boolean, RecordLimit: Integer): Boolean

Parameters

Name Type Description
TempTenantMedia __MissingTypeSymbol__
LoadMediaContent Boolean
RecordLimit Integer

Returns

Type Description
Boolean

GetTenantMediaFromDetachedMediaSet

procedure GetTenantMediaFromDetachedMediaSet(TempTenantMedia: __MissingTypeSymbol__, LoadMediaContent: Boolean): Boolean

Parameters

Name Type Description
TempTenantMedia __MissingTypeSymbol__
LoadMediaContent Boolean

Returns

Type Description
Boolean

GetTenantMediaFromDetachedMediaSet

procedure GetTenantMediaFromDetachedMediaSet(TempTenantMedia: __MissingTypeSymbol__, LoadMediaContent: Boolean, RecordLimit: Integer): Boolean

Parameters

Name Type Description
TempTenantMedia __MissingTypeSymbol__
LoadMediaContent Boolean
RecordLimit Integer

Returns

Type Description
Boolean

DownloadTenantMedia

Downloads the content of the specified tenant media id.

procedure DownloadTenantMedia(MediaId: Guid): Boolean

Parameters

Name Type Description
MediaId Guid

ID of the tenant media.

Returns

Type Description
Boolean

DeleteDetachedTenantMedia

procedure DeleteDetachedTenantMedia(TempTenantMedia: __MissingTypeSymbol__)

Parameters

Name Type Description
TempTenantMedia __MissingTypeSymbol__

DeleteDetachedTenantMediaSet

Deletes all detached tenant media sets. Note: This function will delete detached media set in batches of 10 and commit in between each batch. This is to ensure we don't get stuck always trying to delete the same media and time out.

procedure DeleteDetachedTenantMediaSet()

DeleteDetachedTenantMedia

Deletes all detached tenant media. Note: This function will delete detached media in batches of 100 and commit in between each batch. This is to ensure we don't get stuck always trying to delete the same media and time out.

procedure DeleteDetachedTenantMedia()

ScheduleCleanupDetachedMedia

Schedules a background task which will remove both detached Tenant Media and detached Tenant Media Set. If user cannot schedule tasks, will suggest running the task in the foreground.

procedure ScheduleCleanupDetachedMedia()

See also