---
title: "Report 6217 Sust. Resource Calculate CO2e, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/points/
object: https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/
checked: 2026-11-20
changed: 2026-10-05
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/"
---

# Report 6217 Sust. Resource Calculate CO2e, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/points/

2 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/Certificate/SustResourceCalculateCO2e.Report.al, in source order, read from the text, not from a run.

## Resource.OnAfterGetRecord

[Line 19](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L19), trigger.

- [27](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L27) calls `OpenDialog`
- [30](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L30) calls `UpdateCO2ePerUnit`
- [31](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L31) calls `UpdateDialog`
- [33](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L33) calls `CommitRecord`
- [36](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L36) calls `CloseDialog`
- [39](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L39) calls `ShowCompletionMsg`

## UpdateCO2ePerUnit

[Line 90](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L90), local.

- [95](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L95) calls [Codeunit 6212 Sustainability Post Mgt](https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/) `UpdateCarbonFeeEmissionValues`
- [105](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L105) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `CO2e per Unit`
- [106](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L106) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `CO2e Last Date Modified`
- [107](https://jonas-paprotka.de/ref/report/6217-sust-resource-calculate-co2e/source/#L107) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify(true)

## Source

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

JOP-AL, 2026-11-20.
