---
id: object/table/6291
type: object
title: Table 6291 "Emission Source Setup"
summary: Table 6291 "Emission Source Setup" in SustainabilityCopilotSuggestion (Microsoft.Sustainability.Copilot). 7 fields, 5 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - sustainabilitycopilotsuggestion
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: a2c7fa71ef2c1248edf96aec98bc57adea71a29d169286fe9c9ac9d8e841d9ae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SustainabilityCopilotSuggestion/app/src/EmissionSource/EmissionSourceSetup.Table.al
    title: src/Apps/W1/SustainabilityCopilotSuggestion/app/src/EmissionSource/EmissionSourceSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 6291
name: Emission Source Setup
namespace: Microsoft.Sustainability.Copilot
app: SustainabilityCopilotSuggestion
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: 7
  procedures: 12
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 3
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 6291 "Emission Source Setup"

> Table 6291 "Emission Source Setup" in SustainabilityCopilotSuggestion (Microsoft.Sustainability.Copilot). 7 fields, 5 public procedures. Introduced in BC29, still in BC30.

SustainabilityCopilotSuggestion · Microsoft.Sustainability.Copilot · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SustainabilityCopilotSuggestion/app/src/EmissionSource/EmissionSourceSetup.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Emission Source Setup |
| Access | Internal |
| DataClassification | CustomerContent |

## 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 | Id | BigInteger | — | AutoIncrement; DataClassification SystemMetadata |
| 2 | Country/Region Code | Code[10] | Specifies the country/region code | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 3 | Country Name | Text[50] | Specifies the country name | FlowField: lookup("Country/Region".Name where(Code = field("Country/Region Code"))); not editable |
| 4 | Description | Text[250] | Specifies the source description |  |
| 5 | Source File | Blob | Specifies the source file |  |
| 6 | Starting Date | Date | Specifies the starting date for the emission source |  |
| 7 | Ending Date | Date | Specifies the ending date for the emission source |  |

## Keys

- PK: Id (clustered)

## Procedures

- `AddFile()`
- `UploadFileToBlob(var InStr: InStream): Boolean`
- `SetContentFromBlob(TempBlob: Codeunit "Temp Blob")`
- `DownloadFile()`
- `ImportExcelSheet(var InStr: InStream)` (internal)

Plus 7 local procedures.

## Triggers

OnDelete

## Relations

- Country Name: CalcFormula [Table 9 "Country/Region"](../table/9.md)
- Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)

## Referenced by

3 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 6292 "Source CO2 Emission"](../table/6292.md): Source Description, Emission Source ID
- [Table 6293 "Source CO2 Emission Buffer"](../table/6293.md): Emission Source ID

## Pages and codeunits on this table

- [Page 6328 "Emission Source Setup"](../page/6328.md) (source table)

## 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 27 "Confirm Management"](../codeunit/27.md) (2 calls: `DownloadFile → GetResponse`, `UploadFileToBlob → GetResponse`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `SetContentFromBlob → ToRecordRef`, `UploadFileToBlob → CreateOutStream`)

## 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: "table", object_name: "Emission Source Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
