---
id: object/tableextension/6211
type: object
title: Table extension 6211 "Sustainability Purch. Line"
summary: Table extension 6211 "Sustainability Purch. Line" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purchase Line". 33 fields, 4 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - tableextension
  - sustainability
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: 3be57c9074a926bafd815204790cf0c1d48b9f5dd92729e05c1f22e4a6f2cafd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchLine.TableExt.al
    title: src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchLine.TableExt.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/39
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11217
    - change/bcapps/9613
object_type: tableextension
object_id: 6211
name: Sustainability Purch. Line
namespace: Microsoft.Sustainability.Purchase
app: Sustainability
extends: Purchase Line
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 33
  procedures: 13
  events: 0
  subscribers: 0
relations:
  out: 6
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table extension 6211 "Sustainability Purch. Line"

> Table extension 6211 "Sustainability Purch. Line" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purchase Line". 33 fields, 4 public procedures. Introduced in BC29, still in BC30.

Sustainability · Microsoft.Sustainability.Purchase · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchLine.TableExt.al) · facts from BC29

Extends [Purchase Line](../table/39.md).

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 6210 | Sust. Account No. | Code[20] | Specifies the value of the Sustainability Account No. field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | TableRelation [Table 6210 "Sustainability Account"](../table/6210.md) ("Sustainability Account" where("Account Type" = const(Posting), Blocked = const(false))); DataClassification CustomerContent |
| 6211 | Sust. Account Name | Text[100] | Sustainability Account Name <small>caption</small> | DataClassification CustomerContent |
| 6212 | Sust. Account Category | Code[20] | Sustainability Account Category <small>caption</small> | TableRelation [Table 6211 "Sustain. Account Category"](../table/6211.md) (Sustain. Account Category); not editable; DataClassification CustomerContent |
| 6213 | Sust. Account Subcategory | Code[20] | Sustainability Account Subcategory <small>caption</small> | TableRelation [Table 6212 "Sustain. Account Subcategory"](../table/6212.md) ("Sustain. Account Subcategory".Code where("Category Code" = field("Sust. Account Category"))); not editable; DataClassification CustomerContent |
| 6214 | Emission CO2 Per Unit | Decimal | — | DataClassification CustomerContent |
| 6215 | Emission CH4 Per Unit | Decimal | — | DataClassification CustomerContent |
| 6216 | Emission N2O Per Unit | Decimal | — | DataClassification CustomerContent |
| 6217 | Emission CO2 | Decimal | Specifies the value of the Emission CO2 field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6218 | Emission CH4 | Decimal | Specifies the value of the Emission CH4 field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6219 | Emission N2O | Decimal | Specifies the value of the Emission N2O field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6220 | Posted Emission CO2 | Decimal | — | not editable; DataClassification CustomerContent |
| 6221 | Posted Emission CH4 | Decimal | — | not editable; DataClassification CustomerContent |
| 6222 | Posted Emission N2O | Decimal | — | not editable; DataClassification CustomerContent |
| 6223 | Energy Source Code | Code[20] | Specifies the value of the Energy Source Code field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | TableRelation [Table 6233 "Sustainability Energy Source"](../table/6233.md) (Sustainability Energy Source); DataClassification CustomerContent |
| 6224 | Renewable Energy | Boolean | Specifies the value of the Renewable Energy field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6225 | Energy Consumption Per Unit | Decimal | — | DataClassification CustomerContent |
| 6226 | Energy Consumption | Decimal | Specifies the value of the Energy Consumption field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6227 | Posted Energy Consumption | Decimal | — | not editable; DataClassification CustomerContent |
| 6228 | Source of Emission Data | Enum "Sust. Source of Emission" | Specifies the value of the Source of Emission Data field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | enum [Enum 6224 "Sust. Source of Emission"](../enum/6224.md); DataClassification CustomerContent |
| 6229 | Emission Verified | Boolean | Specifies the value of the Emission Verified field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6230 | CBAM Compliance | Boolean | Specifies the value of the CBAM Compliance field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6231 | Emission Cost Per Unit | Decimal | — | DataClassification CustomerContent |
| 6232 | Total Emission Cost | Decimal | Specifies the value of the Total Emission Cost field. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6233 | Posted Total Emission Cost | Decimal | — | DataClassification CustomerContent |
| 6234 | Unit for Sust. Formulas | Code[10] | Specifies the unit of measure used for formulas to calculate total emissions based on inbound information. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | TableRelation [Table 204 "Unit of Measure"](../table/204.md) (Unit of Measure); DataClassification CustomerContent |
| 6235 | Fuel/Electricity | Decimal | Specifies the fuel or electricity of the purchase line. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6236 | Distance | Decimal | Specifies the distance of the purchase line. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6237 | Custom Amount | Decimal | Specifies the custom amount of the purchase line. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6238 | Installation Multiplier | Decimal | Specifies the installation multiplier of the purchase line. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6239 | Time Factor | Decimal | Specifies the time factor of the purchase line. <small>via [Page extension 6211 "Sust. Purch. Order Subform"](../pageextension/6211.md)</small> | DataClassification CustomerContent |
| 6240 | Received Sust. Cert. Type Code | Code[50] | Received Sustainability Certificate Type Code <small>caption</small> | DataClassification CustomerContent |
| 6241 | Received Sust. Prod. CL. Code | Code[50] | Received Sustainability Product Classification Code <small>caption</small> | DataClassification CustomerContent |
| 6242 | EUDR Relevant | Boolean | Indicates that the item on the purchase line is subject to the EU Deforestation Regulation, so lot-level certification details may be required. | not editable; DataClassification CustomerContent |

## Procedures

- `UpdateSustainabilityEmission(var PurchLine: Record "Purchase Line")`
- `UpdateEmissionPerUnit(var PurchLine: Record "Purchase Line")`
- `UpdateCarbonPricingInPurchLine(var PurchLine: Record "Purchase Line")` (internal)
- `IsSustainabilityFormulaPurchaseLine(): Boolean` (internal)

Plus 9 local procedures.

## Relations

- Unit for Sust. Formulas: TableRelation [Table 204 "Unit of Measure"](../table/204.md)
- extends [Table 39 "Purchase Line"](../table/39.md)
- Sust. Account No.: TableRelation [Table 6210 "Sustainability Account"](../table/6210.md)
- Sust. Account Category: TableRelation [Table 6211 "Sustain. Account Category"](../table/6211.md)
- Sust. Account Subcategory: TableRelation [Table 6212 "Sustain. Account Subcategory"](../table/6212.md)
- Energy Source Code: TableRelation [Table 6233 "Sustainability Energy Source"](../table/6233.md)

## 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 6225 "Sust. Purchase Subscriber"](../codeunit/6225.md) (1 call: `FindCarbonPricingFromPurchaseLine → GetCO2eEmissionFromPurchLine`)

## Recent changes

- 2026-09-15 [#11217 [Master] - Slice 641591: EUDR Certificate Capture for Items](../../changes/bcapps/11217.md) (main, BC30, feature)
- 2026-07-29 [#9613 [Master] - Sustainability: Specific Carbon Tracking, Item Charge emissions & setup fixes (Bugs 641051, 641486, 641487, 641049, 641222, 641055, 641289, 641224, 641309)](../../changes/bcapps/9613.md) (main, BC30, fix)

## Across versions

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

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: "tableextension", object_name: "Sustainability Purch. Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
