{"title":"Codeunit 6212 Sustainability Post Mgt","url":"https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.Sustainability.symbols.b3780cd9-f8f8-4a83-a4d5-0c2ad87b28af","build":"29.0.54011.55644","builds":{"24":"24.5.23489.36097","25":"25.5.30849.36072","26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"29":{"url":"https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/Sustainability/app/src/Posting/SustainabilityPostMgt.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":6212,"name":"Sustainability Post Mgt","app":"Sustainability","appByVersion":[{"app":"Sustainability","from":24}],"nameByVersion":[{"name":"Sustainability Post Mgt","from":24}],"namespace":"Microsoft.Sustainability.Posting","versions":"24-29","majors":[24,25,26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"24.0-29.0","DE":"24.0-29.0","US":"24.0-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":null,"extendedBy":[],"implementedBy":[],"sourceFile":"src/Posting/SustainabilityPostMgt.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"24":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"25":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":8,"values":0},"stub":false},"26":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":12,"values":0},"stub":false},"27":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":14,"values":0},"stub":false},"28":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":22,"values":0},"stub":false},"29":{"app":"Sustainability","name":"Sustainability Post Mgt","ns":"Microsoft.Sustainability.Posting","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":23,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"InsertLedgerEntry","sig":"(Record Sustainability Jnl. Line)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ResetFilters","sig":"(var Record Sustainability Jnl. Line)","named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetStartPostingProgressMessage","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetCheckJournalLineProgressMessage","sig":"(Integer)","named":"(LineNo: Integer)","returns":"Text","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(LineNo: Integer)","returns":"Text","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetProgressingLineMessage","sig":"(Integer)","named":"(LineNo: Integer)","returns":"Text","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(LineNo: Integer)","returns":"Text","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetJnlLinesPostedMessage","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetPostConfirmMessage","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateCarbonFeeEmission","sig":"(var Record Sustainability Ledger Entry)","named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"InsertValueEntry","sig":"(Record Sustainability Jnl. Line, Record Value Entry, Record Item Ledger Entry)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; ValueEntry: Record \"Value Entry\"; ItemLedgerEntry: Record \"Item Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; ValueEntry: Record \"Value Entry\"; ItemLedgerEntry: Record \"Item Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateCO2ePerUnit","sig":"(Record Sustainability Value Entry)","named":"(SustValueEntry: Record \"Sustainability Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(SustValueEntry: Record \"Sustainability Value Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateCarbonFeeEmissionForValueEntry","sig":"(var Record Sustainability Value Entry, Record Sustainability Jnl. Line)","named":"(var SustainabilityValueEntry: Record \"Sustainability Value Entry\"; SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var SustainabilityValueEntry: Record \"Sustainability Value Entry\"; SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"UpdateCarbonFeeEmissionValues","sig":"(Enum Emission Scope, Date, Code[10], Decimal, Decimal, Decimal, var Decimal, var Decimal)","named":"(ScopeType: Enum \"Emission Scope\"; PostingDate: Date; CountryRegionCode: Code[10]; EmissionCO2: Decimal; EmissionN2O: Decimal; EmissionCH4: Decimal; var CO2eEmission: Decimal; var CarbonFee: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ScopeType: Enum \"Emission Scope\"; PostingDate: Date; CountryRegionCode: Code[10]; EmissionCO2: Decimal; EmissionN2O: Decimal; EmissionCH4: Decimal; var CO2eEmission: Decimal; var CarbonFee: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"InsertValueEntry","sig":"(Record Sustainability Jnl. Line, Record Job Ledger Entry)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; JobLedgerEntry: Record \"Job Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; JobLedgerEntry: Record \"Job Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"InsertValueEntry","sig":"(Record Sustainability Jnl. Line, Record Res. Ledger Entry)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; ResourceLedgerEntry: Record \"Res. Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; ResourceLedgerEntry: Record \"Res. Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"InsertValueEntry","sig":"(Record Sustainability Jnl. Line, Record FA Ledger Entry)","named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; FALedgerEntry: Record \"FA Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(SustainabilityJnlLine: Record \"Sustainability Jnl. Line\"; FALedgerEntry: Record \"FA Ledger Entry\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTotalCO2eAmount","sig":"(Record Item Ledger Entry, Enum Capacity Type Journal, var Decimal, Decimal)","named":"(ItemLedgerEntry: Record \"Item Ledger Entry\"; ValueEntryType: Enum \"Capacity Type Journal\"; var TotalCO2e: Decimal; CO2ePerUnit: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ItemLedgerEntry: Record \"Item Ledger Entry\"; ValueEntryType: Enum \"Capacity Type Journal\"; var TotalCO2e: Decimal; CO2ePerUnit: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetCO2eAmountAndQuantity","sig":"(Integer, var Decimal, var Decimal)","named":"(ItemLedgerEntryNo: Integer; var CO2eAmount: Decimal; var CO2eQuantity: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ItemLedgerEntryNo: Integer; var CO2eAmount: Decimal; var CO2eQuantity: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTotalCO2eAmountFromValueEntry","sig":"(Enum Item Ledger Document Type, Code[20], Integer, Code[20], var Decimal, var Decimal)","named":"(ItemLedgerEntryDocumentType: Enum \"Item Ledger Document Type\"; DocumentNo: Code[20]; DocumentLineNo: Integer; ItemNo: Code[20]; var TotalCO2eAmount: Decimal; var TotalCO2eQuantity: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ItemLedgerEntryDocumentType: Enum \"Item Ledger Document Type\"; DocumentNo: Code[20]; DocumentLineNo: Integer; ItemNo: Code[20]; var TotalCO2eAmount: Decimal; var TotalCO2eQuantity: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsCarbonTrackingSpecificItem","sig":"(Code[20])","named":"(ItemNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ItemNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"SetSkipUpdateCarbonEmissionValue","sig":"(Boolean)","named":"(NewSkipUpdateCarbonEmissionValue: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(NewSkipUpdateCarbonEmissionValue: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetNextGLEntryNo","sig":"(Integer)","named":"(NewGLEntryNo: Integer)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(NewGLEntryNo: Integer)","returns":"","kind":"procedure","access":"internal","obsolete":null}]}],"events":[{"name":"OnBeforeInsertSustainabilityLedgerEntry","sig":"(var Record Sustainability Ledger Entry, Record Sustainability Jnl. Line)","named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\"; SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\"; SustainabilityJnlLine: Record \"Sustainability Jnl. Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnInsertLedgerEntryOnBeforeInsert","sig":"(var Record Sustainability Ledger Entry, var Boolean)","named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\"; var IsHandled: Boolean)","returns":"","kind":"internalevent","access":"local","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(var SustainabilityLedgerEntry: Record \"Sustainability Ledger Entry\"; var IsHandled: Boolean)","returns":"","kind":"internalevent","access":"local","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}