Codeunit 8912 "Environment Cleanup Subs"
Base Application · System.Environment
Across versions
- BC23-27present
- BC281 procedures added
- BC29-30unchanged
Neighbourhood 5 connected objects and pages
Base Application · System.Environment · BC23-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Event subscriptions
- ClearCompanyConfigGeneral subscribes to Codeunit “Environment Cleanup” OnClearCompanyConfig
- ClearCompanyConfigProdToProd subscribes to Codeunit “Environment Cleanup” OnClearCompanyConfig
- ClearDatabaseConfigGeneral subscribes to Codeunit “Environment Cleanup” OnClearDatabaseConfig
- ClearDatabaseConfigProdToProd subscribes to Codeunit “Environment Cleanup” OnClearDatabaseConfig
- ClearPowerBIDeploymentsOnCopiedCompany subscribes to Report “Copy Company” OnAfterCreatedNewCompanyByCopyCompany
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 456 “Job Queue Management” (1 call:
ClearCompanyConfigGeneral → SetRecurringJobsOnHold) - Codeunit 6351 “PBI Deployment Events” (1 call:
ClearPowerBIDeploymentsOnCopiedCompany → ClearDeploymentsForCompany) - Codeunit 7201 “CDS Integration Impl.” (1 call:
ClearCompanyConfigGeneral → CleanCDSIntegration)
Recent changes
- 2026-10-19 #12186 Set several fields in one ModifyAll call (main, BC30, performance)
Linked pages
- Copy a Business Central Environment — documents: Microsoft’s own subscribers to the environment cleanup events, which run when an environment is copied (checked by hand)
- Production and Sandbox Environments — documents: lists the setups a copy disables and the data it clears, which Microsoft’s cleanup subscribers carry out (checked by hand)
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
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: "Environment Cleanup Subs"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.