---
id: change/bcapps/12152
type: change
title: "#12152 [MCP] Clear environment description after environment copy"
summary: Environment descriptions are now cleared when an environment is copied, preventing the destination from retaining information about the source environment.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit environment information impl.
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:21.329Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3f135fd55af4959ce460cc90b1f05d4e48a14564
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12152
    title: "microsoft/BCApps#12152: [MCP] Clear environment description after environment copy"
    date: "2026-10-05"
    commit: 3f135fd55af4959ce460cc90b1f05d4e48a14564
    t: null
    quote: Clear the database-wide environment description when an environment is copied so the destination does not retain context describing the source environment.
links:
  learn: []
  objects:
    - object/codeunit/3702
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12152
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12152
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-05T10:34:28Z"
author: nikolakukrika
author_type: User
community_contribution: false
labels:
  - "AL: System Application"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 4
  additions: 32
  deletions: 2
  al: 1
apps:
  - System Application
objects_touched:
  - key: codeunit/3702
    page: codeunit/3702
    type: codeunit
    id: 3702
    name: Environment Information Impl.
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650130
  - 650134
systems:
  - administration
quote: Clear the database-wide environment description when an environment is copied so the destination does not retain context describing the source environment.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12152 [MCP] Clear environment description after environment copy

> Environment descriptions are now cleared when an environment is copied, preventing the destination from retaining information about the source environment.

[Pull request](https://github.com/microsoft/BCApps/pull/12152) · merged into `main` (BC30) on 2026-10-05 by nikolakukrika · 4 files (+32 -2), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Subscribes to the database-level environment cleanup event triggered during environment copy
- Clears the environment description BLOB for every environment-copy scenario
- Adds a regression test to verify description is cleared after environment copy
- Operates at database scope, consistent with the environment description's `DataPerCompany = false` setting
- Existing descriptions remain unchanged unless the platform triggers an environment-copy cleanup event
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 3702 "Environment Information Impl."](../../objects/codeunit/3702.md), System Application: modified

## Context

- Work items: AB#650130, AB#650134
- Labels: AL: System Application, Team: Integrations
- Systems: administration
- From the description: "Clear the database-wide environment description when an environment is copied so the destination does not retain context describing the source environment."

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
