---
title: "Codeunit 6351 PBI Deployment Events, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/points/
object: https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/source/
checked: 2026-11-20
changed: 2026-11-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6351 PBI Deployment Events, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/points/

2 procedures and triggers with a step in src/Layers/W1/BaseApp/Modules/System/PowerBI/APIs/ReportDeployments/PBIDeploymentEvents.Codeunit.al, in source order, read from the text, not from a run.

## ClearDeploymentsForCompany

[Line 34](https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/source/#L34), internal.

- [38](https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/source/#L38) calls [Table 6316 Power BI Deployment](https://jonas-paprotka.de/ref/table/6316-power-bi-deployment/) `DeleteAllRecords`

## ClearDeploymentRecordsOnEnvironmentCopy

[Line 42](https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/source/#L42), local.

- [46](https://jonas-paprotka.de/ref/codeunit/6351-pbi-deployment-events/source/#L46) calls `ClearDeploymentsForCompany`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
