---
title: "Codeunit 6219 Sustainability Chart Mgmt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/points/
object: https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/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/"
---

# Codeunit 6219 Sustainability Chart Mgmt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/points/

8 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/RoleCenters/SustainabilityChartMgmt.Codeunit.al, in source order, read from the text, not from a run.

## GenerateDate

[Line 48](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L48).

- [55](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L55) writes [Table 6220 Sustainability Cue](https://jonas-paprotka.de/ref/table/6220-sustainability-cue/) Insert
- [63](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L63) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `Initialize`
- [66](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L66) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddMeasure`
- [68](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L68) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetXAxis`
- [69](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L69) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [70](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L70) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [70](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L70) calls `GetRatio`
- [73](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L73) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [73](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L73) calls `GetCH4`
- [74](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L74) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [74](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L74) calls `GetRatio`
- [77](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L77) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [77](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L77) calls `GetN2O`
- [78](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L78) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [78](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L78) calls `GetRatio`

## GenerateChartByEmissionGas

[Line 82](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L82).

- [99](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L99) writes [Table 6220 Sustainability Cue](https://jonas-paprotka.de/ref/table/6220-sustainability-cue/) Insert
- [104](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L104) calls `GetEmissionValue`
- [106](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L106) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `Initialize`
- [109](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L109) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddMeasure`
- [112](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L112) calls `GetCH4`
- [112](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L112) calls `GetCO2`
- [112](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L112) calls `GetN2O`
- [114](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L114) calls `GetEmissionByScope`
- [115](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L115) calls `GetEmissionByScope`
- [116](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L116) calls `GetEmissionByScope`
- [118](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L118) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetXAxis`
- [119](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L119) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [120](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L120) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [120](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L120) calls `GetRatio`
- [123](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L123) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [124](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L124) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [124](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L124) calls `GetRatio`
- [127](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L127) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [128](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L128) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [128](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L128) calls `GetRatio`
- [131](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L131) calls `GetWater`
- [133](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L133) calls `GetEmissionByWaterWasteIntensityType`
- [134](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L134) calls `GetEmissionByWaterWasteIntensityType`
- [135](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L135) calls `GetEmissionByWaterWasteIntensityType`
- [136](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L136) calls `GetEmissionByWaterWasteIntensityType`
- [138](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L138) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetXAxis`
- [139](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L139) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [140](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L140) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [140](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L140) calls `GetRatio`
- [143](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L143) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [144](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L144) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [144](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L144) calls `GetRatio`
- [147](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L147) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [148](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L148) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [148](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L148) calls `GetRatio`
- [151](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L151) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [152](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L152) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [152](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L152) calls `GetRatio`
- [155](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L155) calls `GetWaste`
- [157](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L157) calls `GetEmissionByWaterWasteIntensityType`
- [158](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L158) calls `GetEmissionByWaterWasteIntensityType`
- [159](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L159) calls `GetEmissionByWaterWasteIntensityType`
- [161](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L161) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetXAxis`
- [162](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L162) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [163](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L163) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [163](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L163) calls `GetRatio`
- [166](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L166) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [167](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L167) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [167](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L167) calls `GetRatio`
- [170](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L170) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [171](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L171) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [171](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L171) calls `GetRatio`

## UpdateBarByEmissionGas

[Line 177](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L177).

- [186](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L186) writes [Table 6220 Sustainability Cue](https://jonas-paprotka.de/ref/table/6220-sustainability-cue/) Insert
- [188](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L188) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `Initialize`
- [192](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L192) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetPeriodXAxis`
- [194](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L194) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddDecimalMeasure`
- [196](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L196) calls `CalcPeriods`
- [197](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L197) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddPeriods`
- [203](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L203) calls `GetEmissionValue`
- [204](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L204) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [208](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L208) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetXAxis`
- [209](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L209) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddDecimalMeasure`
- [211](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L211) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [212](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L212) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [212](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L212) calls `GetEmissionByWaterType`
- [215](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L215) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [216](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L216) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [216](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L216) calls `GetEmissionByWaterType`
- [219](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L219) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [220](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L220) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [220](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L220) calls `GetEmissionByWaterType`
- [223](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L223) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [224](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L224) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [224](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L224) calls `GetEmissionByWaterType`
- [227](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L227) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `AddColumn`
- [228](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L228) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `SetValueByIndex`
- [228](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L228) calls `GetEmissionByWaterType`

## CalcPeriods

[Line 233](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L233), local.

- [244](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L244) calls [Table 485 Business Chart Buffer](https://jonas-paprotka.de/ref/table/485-business-chart-buffer/) `CalcFromDate`

## GetEmissionByScope

[Line 252](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L252), local.

- [255](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L255) calls `GetEmissionValue`

## GetEmissionByWaterWasteIntensityType

[Line 258](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L258), local.

- [261](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L261) calls `GetEmissionValue`

## GetEmissionByWaterType

[Line 264](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L264), local.

- [267](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L267) calls `GetEmissionValue`

## GetEmissionValue

[Line 270](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L270), local.

- [273](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L273) calls `GetCO2`
- [278](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L278) calls `GetCH4`
- [283](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L283) calls `GetN2O`
- [288](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L288) calls `GetWater`
- [293](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L293) calls `GetWaste`
- [298](https://jonas-paprotka.de/ref/codeunit/6219-sustainability-chart-mgmt/source/#L298) calls `GetCO2e`

## Source

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

JOP-AL, 2026-11-20.
