{"title":"Codeunit 6261 Sust. ESG Reporting Post. Mgt, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/points/","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","object":{"type":"codeunit","id":6261,"name":"Sust. ESG Reporting Post. Mgt","app":"Sustainability","url":"https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/","path":"src/Apps/W1/Sustainability/app/src/ESGReporting/SustESGReportingPostMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:6217":{"name":"Sustainability Setup","url":"https://jonas-paprotka.de/ref/table/6217-sustainability-setup/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:6231":{"name":"Sust. Posted ESG Report Header","url":"https://jonas-paprotka.de/ref/table/6231-sust-posted-esg-report-header/"},"codeunit:6260":{"name":"Sust. ESG Reporting Helper Mgt","url":"https://jonas-paprotka.de/ref/codeunit/6260-sust-esg-reporting-helper-mgt/"},"table:6232":{"name":"Sust. Posted ESG Report Line","url":"https://jonas-paprotka.de/ref/table/6232-sust-posted-esg-report-line/"},"table:6229":{"name":"Sust. ESG Reporting Name","url":"https://jonas-paprotka.de/ref/table/6229-sust-esg-reporting-name/"}},"procs":[{"name":"OnRun","line":16,"kind":"trigger","steps":[[22,"call","RunWithCheck",1]]},{"name":"RunWithCheck","line":25,"kind":"procedure","access":"internal","params":1,"steps":[[27,"ext","table",6217,"GetRecordOnce",0],[33,"call","CheckAndCreatePostedDocument",1]]},{"name":"PostESGReport","line":36,"kind":"procedure","access":"internal","params":1,"steps":[[41,"ext","codeunit",27,"GetResponseOrDefault",2],[47,"call","RunWithCheck",1],[50,"call","UpdateESGReportingName",1]]},{"name":"CheckAndCreatePostedDocument","line":57,"kind":"procedure","access":"local","params":1,"steps":[[59,"call","ValidateESGReporting",1],[61,"call","InsertPostedHeader",0],[62,"call","ProcessPostLines",1]]},{"name":"InsertPostedHeader","line":77,"kind":"procedure","access":"local","params":0,"steps":[[83,"ext","codeunit",310,"GetNextNo",2],[84,"write",6231,"Insert"]]},{"name":"ProcessPostLines","line":87,"kind":"procedure","access":"local","params":1,"steps":[[91,"call","SetDateFilter",2],[92,"ext","codeunit",6260,"InitializeRequest",3],[97,"ext","table",6232,"CopyFromESGReportingLine",1],[100,"ext","codeunit",6260,"CalcLineTotal",3],[101,"write",6232,"Insert"]]},{"name":"UpdateESGReportingName","line":105,"kind":"procedure","access":"local","params":1,"steps":[[107,"validate",6229,"Posted"],[108,"write",6229,"Modify"]]}]}