---
id: object/codeunit/5215
type: object
title: Codeunit 5215 "Create Sustainability Account"
summary: Codeunit 5215 "Create Sustainability Account" in SustainabilityContosoCoffeeDemoDataset. 99 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - sustainabilitycontosocoffeedemodataset
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 3990eb539dc5bb2d9176ca11ea41061e65ef841044783076e9a35cf70e16220d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SustainabilityContosoCoffeeDemoDataset/app/DemoData/Sustainability/1.Setup%20Data/CreateSustainabilityAccount.Codeunit.al
    title: src/Apps/W1/SustainabilityContosoCoffeeDemoDataset/app/DemoData/Sustainability/1.Setup Data/CreateSustainabilityAccount.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5215
name: Create Sustainability Account
namespace: null
app: SustainabilityContosoCoffeeDemoDataset
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 99
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 5
  implements: 0
---

# Codeunit 5215 "Create Sustainability Account"

> Codeunit 5215 "Create Sustainability Account" in SustainabilityContosoCoffeeDemoDataset. 99 public procedures. Introduced in BC29, still in BC30.

SustainabilityContosoCoffeeDemoDataset · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SustainabilityContosoCoffeeDemoDataset/app/DemoData/Sustainability/1.Setup%20Data/CreateSustainabilityAccount.Codeunit.al) · facts from BC29

## Procedures

- `UtilitiesExpensePowerPlant(): Code[20]` (obsolete 29.0: Unused function.)
- `GasEmissions(): Code[20]`
- `Scope1(): Code[20]`
- `StationaryCombustion(): Code[20]`
- `Boilers(): Code[20]`
- `HeatersSmall(): Code[20]`
- `HeatersMedium(): Code[20]`
- `HeatersLarge(): Code[20]`
- `ThermalOxidizers(): Code[20]`
- `TotalStationaryCombustion(): Code[20]`
- `MobileCombustion(): Code[20]`
- `OnRoadVehicleUrbanTrucks(): Code[20]`
- `OnRoadVehiclesLongHaulTrucks(): Code[20]`
- `OnRoadVehiclesBuses(): Code[20]`
- `NonRoadVehiclesTractors(): Code[20]`
- `NonRoadVehiclesForklifts(): Code[20]`
- `NonRoadVehiclesBackhoes(): Code[20]`
- `Rail(): Code[20]`
- `AirContinentalEconomy(): Code[20]`
- `AirContinentalBusiness(): Code[20]`
- `AirIntercontinentalEconomy(): Code[20]`
- `AirIntercontinentalPremiumEconomy(): Code[20]`
- `AirIntercontinentalBusiness(): Code[20]`
- `TotalMobileCombustion(): Code[20]`
- `FugitiveEmission(): Code[20]`
- `Refrigerators(): Code[20]`
- `AirConditionEquipments24kW(): Code[20]`
- `AirConditionEquipments36kW(): Code[20]`
- `TotalFugitiveEmissions(): Code[20]`
- `TotalScope1(): Code[20]`
- `Scope2(): Code[20]`
- `UpstreamActivityScope2(): Code[20]`
- `PurchasedElectricityContosoPowerPlant(): Code[20]`
- `PurchasedElectricityWideWorldImporters(): Code[20]`
- `PurchasedElectricityGreenTariffEnergy(): Code[20]`
- `SteamFabrikamInc(): Code[20]`
- `HeatingFabrikamInc(): Code[20]`
- `TotalUpStreamActivityScope2(): Code[20]`
- `TotalScope2(): Code[20]`
- `Scope3(): Code[20]`
- `UpstreamActivityScope3(): Code[20]`
- `PurchasedGoodsPlastic(): Code[20]`
- `PurchasedGoodsAluminum(): Code[20]`
- `PurchasedGoodsSteel(): Code[20]`
- `PurchasedGoodsGlass(): Code[20]`
- `PurchasedServices(): Code[20]`
- `ExternalTransportation(): Code[20]`
- `TransportationWithOwnTrucks(): Code[20]`
- `WastePlasticGeneratedInOperation(): Code[20]`
- `WasteOrganicGeneratedInOperation(): Code[20]`
- `RecycledWasteGeneratedInOperation(): Code[20]`
- `TotalUpstreamActivityScope3(): Code[20]`
- `DownstreamActivityScope3(): Code[20]`
- `ProcessingOfSoldProducts(): Code[20]`
- `UseOfSoldProducts(): Code[20]`
- `EndOfLifeTreatmentOfSoldProducts(): Code[20]`
- `ExternalTransportationScope3(): Code[20]`
- `TransportationWithOwnTrucksScope3(): Code[20]`
- `TotalDownstreamActivityScope3(): Code[20]`
- `BusinessTravelAndEmployeeCommuting(): Code[20]`
- `ContosoHotel3Stars(): Code[20]`
- `ContosoHotel4Stars(): Code[20]`
- `ContosoHotel4StarsJuniorSuite(): Code[20]`
- `ContosoRentalCar(): Code[20]`
- `CompanyCarMediumSize(): Code[20]`
- `CompanyCarLargeSize(): Code[20]`
- `CompanyCarPremiumSize(): Code[20]`
- `TotalBusinessTravelAndEmployeeCommuting(): Code[20]`
- `TotalScope3(): Code[20]`
- `TotalGasEmissions(): Code[20]`
- `CarbonCredits(): Code[20]`
- `CarbonCreditScope1(): Code[20]`
- `CarbonCreditScope2(): Code[20]`
- `CarbonCreditScope3(): Code[20]`
- `TotalCarbonCredits(): Code[20]`
- `Water(): Code[20]`
- `ConsumedWater(): Code[20]`
- `GreenWater(): Code[20]`
- `BlueWater(): Code[20]`
- `GreyWater(): Code[20]`
- `TotalConsumedWater(): Code[20]`
- `DischargedWater(): Code[20]`
- `DischargedWater1(): Code[20]`
- `TotalDischargedWater(): Code[20]`
- `TotalWater(): Code[20]`
- `Waste(): Code[20]`
- `ReusableWaste(): Code[20]`
- `RecyclableWaste(): Code[20]`
- `CompostableWaste(): Code[20]`
- `TotalReusableWaste(): Code[20]`
- `ManufacturingWaste(): Code[20]`
- `PlasticWaste(): Code[20]`
- `SteelWaste(): Code[20]`
- `WoodWaste(): Code[20]`
- `TotalManufacturingWaste(): Code[20]`
- `OrganicWaste(): Code[20]`
- `FoodWaste(): Code[20]`
- `TotalOrganicWaste(): Code[20]`
- `TotalWaste(): Code[20]`

## Triggers

OnRun

## 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 5214 "Create Sustain. Subcategory"](../codeunit/5214.md) (56 calls: `OnRun → AirConditionerLarge`, `OnRun → AirConditionerSmall`, `OnRun → AirContinentalBusiness`, …)
- [Codeunit 5213 "Create Sustainability Category"](../codeunit/5213.md) (23 calls: `OnRun → CompanyCar`, `OnRun → Credit1`, `OnRun → Credit2`, …)
- [Codeunit 5216 "Contoso Sustainability"](../codeunit/5216.md) (1 call: `OnRun → InsertSustainabilityAccount`)
- [Codeunit 6210 "Sustainability Account Mgt."](../codeunit/6210.md) (1 call: `OnRun → IndentChartOfSustainabilityAccounts`)

## Called by

- [Codeunit 5222 "Create Sustainability Entry"](../codeunit/5222.md) (32 calls: `CreateLinesForWaterWasteBatch → BlueWater`, `CreateLinesForWaterWasteBatch → DischargedWater1`, `CreateLinesForWaterWasteBatch → FoodWaste`, …)
- [Codeunit 5221 "Create Sustainability Journal"](../codeunit/5221.md) (18 calls: `CreateLinesForDefaultBatch → AirContinentalEconomy`, `CreateLinesForDefaultBatch → AirIntercontinentalBusiness`, `CreateLinesForDefaultBatch → CompanyCarLargeSize`, …)
- [Codeunit 5244 "Create Sust. Acc. Sch. Line"](../codeunit/5244.md) (11 calls: `OnRun → CarbonCreditScope1`, `OnRun → CarbonCreditScope2`, `OnRun → CarbonCreditScope3`, …)
- [Codeunit 5259 "Create Sust. Purchase"](../codeunit/5259.md) (2 calls: `CreatePurchaseInvoiceWithGL → PurchasedElectricityWideWorldImporters`, `CreatePurchaseInvoiceWithItem → CarbonCreditScope1`)
- [Codeunit 5218 "Sustainability Module"](../codeunit/5218.md) (1 call: `CreateSetupData → (object)`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Deprecations

- procedure UtilitiesExpensePowerPlant: Pending 29.0 (#if not CLEAN29), "Unused function."

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: "Create Sustainability Account")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
