---
id: object/table/6261
type: object
title: Table 6261 "Sust. G/L - Sust. Ledger Rel."
summary: Table 6261 "Sust. G/L - Sust. Ledger Rel." in Sustainability (Microsoft.Sustainability.Ledger). 5 fields, 2 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - 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: 2c550c664a535d1a5a674587abe4da3418d00e55bb23ca8c89ea65fcfd7485fd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Ledger/SustGLSustLedgerRel.Table.al
    title: src/Apps/W1/Sustainability/app/src/Ledger/SustGLSustLedgerRel.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10541
object_type: table
object_id: 6261
name: Sust. G/L - Sust. Ledger Rel.
caption: G/L - Sustainability Entry Relation
namespace: Microsoft.Sustainability.Ledger
app: Sustainability
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: 5
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 5
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6261 "Sust. G/L - Sust. Ledger Rel."

> Table 6261 "Sust. G/L - Sust. Ledger Rel." in Sustainability (Microsoft.Sustainability.Ledger). 5 fields, 2 public procedures. Introduced in BC29, still in BC30.

Sustainability · Microsoft.Sustainability.Ledger · captioned "G/L - Sustainability Entry Relation" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Ledger/SustGLSustLedgerRel.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | G/L - Sustainability Entry Relation |
| Extensible | true |
| DataClassification | CustomerContent |
| LookupPageId | Sust. G/L - Sust. Ledger Rel. |
| DrillDownPageId | Sust. G/L - Sust. Ledger Rel. |

## 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 |
|---|---|---|---|---|
| 1 | G/L Entry No. | Integer | Specifies the general ledger entry that the amount was collected from. <small>via [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)</small> | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry); not editable |
| 2 | Sust. Ledger Entry No. | Integer | Specifies the sustainability ledger entry that was created from the collected amount. <small>via [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)</small> | TableRelation [Table 6216 "Sustainability Ledger Entry"](../table/6216.md) (Sustainability Ledger Entry); not editable |
| 3 | Account Category | Code[20] | Specifies the sustainability account category that the general ledger entry was collected under. <small>via [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)</small> | TableRelation [Table 6211 "Sustain. Account Category"](../table/6211.md) (Sustain. Account Category); not editable |
| 4 | Posting Date | Date | Specifies the posting date of the collected general ledger entry. <small>via [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)</small> | not editable |
| 5 | Collected Amount | Decimal | Specifies the amount that was collected from the general ledger entry. <small>via [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)</small> | not editable |

## Keys

- PK: G/L Entry No., Sust. Ledger Entry No. (clustered)
- SustLedgerEntryNo: Sust. Ledger Entry No.
- AccountCategory: Account Category, Posting Date, G/L Entry No.

## Procedures

- `CreateRelation(GLEntry: Record "G/L Entry"; SustLedgerEntryNo: Integer; AccountCategoryCode: Code[20])` (internal)
- `RemoveRelations(SustLedgerEntryNo: Integer)` (internal)

## Relations

- drill-down page [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)
- lookup page [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md)
- G/L Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)
- Account Category: TableRelation [Table 6211 "Sustain. Account Category"](../table/6211.md)
- Sust. Ledger Entry No.: TableRelation [Table 6216 "Sustainability Ledger Entry"](../table/6216.md)

## Pages and codeunits on this table

- [Page 6339 "Sust. G/L - Sust. Ledger Rel."](../page/6339.md) (source table)

## Recent changes

- 2026-09-16 [#10541 [Master] - Slice 641375: [Sustainability] Collect Amount from G/L Entries: track collected entries to prevent double counting](../../changes/bcapps/10541.md) (main, BC30, feature, added)

## 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). 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: "table", object_name: "Sust. G/L - Sust. Ledger Rel.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
