codeunitAdministration & Setupofficial - Microsoftderived - from the source, no model text

Codeunit 1927 "Media Cleanup"

System Application · System.DataAdministration

Across versions

  1. BC23-30present

Neighbourhood 3 connected objects and pages

Codeunit 1928 "Media Cleanup Impl." (calls, 6 links)Media Cleanup Impl.Codeunit 1929 "Media Cleanup Runner" (calls, 2 links)Media Cleanup RunnerPage 1927 "Detached Media Cleanup" (calls, 2 links)Detached Media Cleanup

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.DataAdministration · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public

Procedures

  • GetDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean): Boolean: Returns a list of detached tenant media. This media may be detached by itself or have an detached Media Set pointing to them.
  • GetDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean; RecordLimit: Integer): Boolean: Returns a list of detached tenant media. This media may be detached by itself or have an detached Media Set pointing to them.
  • GetTenantMediaFromDetachedMediaSet(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean): Boolean: Returns a list of detached tenant media. This media may be detached by itself or have an detached Media Set pointing to them.
  • GetTenantMediaFromDetachedMediaSet(var TempTenantMedia: Record "Tenant Media" temporary; LoadMediaContent: Boolean; RecordLimit: Integer): Boolean: Returns a list of detached tenant media. This media may be detached by itself or have an detached Media Set pointing to them.
  • DownloadTenantMedia(MediaId: Guid): Boolean: Downloads the content of the specified tenant media id.
  • DeleteDetachedTenantMedia(var TempTenantMedia: Record "Tenant Media" temporary): Deletes the specified Tenant Media records specified in the temporary record if it is detached.
  • 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.
  • 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.
  • 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.

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

  • Codeunit 1928 “Media Cleanup Impl.” (6 calls: DeleteDetachedTenantMedia → DeleteTenantMedia, DeleteDetachedTenantMediaSet → DeleteDetachedTenantMediaSet, DownloadTenantMedia → DownloadTenantMedia, …)

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Media Cleanup"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources