{"title":"Codeunit 6285 Sust. Service Subscriber, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6285-sust-service-subscriber/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":6285,"name":"Sust. Service Subscriber","app":"Sustainability","url":"https://jonas-paprotka.de/ref/codeunit/6285-sust-service-subscriber/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6285-sust-service-subscriber/source/","path":"src/Apps/W1/Sustainability/app/src/Service/SustServiceSubscriber.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/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"codeunit:6212":{"name":"Sustainability Post Mgt","url":"https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/"}},"procs":[{"name":"OnAfterAssignItemValues","line":25,"kind":"procedure","access":"local","params":2,"steps":[[27,"ext","table",6217,"IsValueChainTrackingEnabled",0],[28,"validate",5902,"Sust. Account No."]]},{"name":"OnAfterAssignResourceValues","line":32,"kind":"procedure","access":"local","params":2,"steps":[[34,"ext","table",6217,"IsValueChainTrackingEnabled",0],[35,"validate",5902,"Sust. Account No."]]},{"name":"OnValidateQuantityOnBeforeResetAmounts","line":39,"kind":"procedure","access":"local","params":1,"steps":[[41,"ext","table",5902,"UpdateSustainabilityEmission",1]]},{"name":"OnUpdateServLinesOnPostOrderOnBeforeServLineLoop","line":45,"kind":"procedure","access":"local","params":3,"steps":[[48,"call","UpdatePostedSustainabilityEmissionOrderLine",3]]},{"name":"OnUpdateServLineCnsmOnBeforeServLineModify","line":52,"kind":"procedure","access":"local","params":2,"steps":[[54,"call","UpdatePostedSustainabilityEmissionOrderLine",2]]},{"name":"OnBeforeServShptLineInsert","line":58,"kind":"procedure","access":"local","params":2,"steps":[[60,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"OnBeforeNewServiceShptLineInsertForUndoServiceShipment","line":64,"kind":"procedure","access":"local","params":2,"steps":[[66,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"OnInsertCorrectiveShipmentLineOnBeforeInsertForUndoServiceConsumption","line":70,"kind":"procedure","access":"local","params":2,"steps":[[72,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"OnBeforeServInvLineInsert","line":76,"kind":"procedure","access":"local","params":2,"steps":[[78,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"OnBeforeServCrMemoLineInsert","line":82,"kind":"procedure","access":"local","params":2,"steps":[[84,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"OnPostDocumentLinesOnAfterFillInvPostingBuffer","line":88,"kind":"procedure","access":"local","params":1,"steps":[[90,"ext","table",5902,"UpdateSustainabilityEmission",1]]},{"name":"OnBeforePostItemJnlLine","line":94,"kind":"procedure","access":"local","params":2,"steps":[[97,"call","UpdateSustainabilityItemJournalLine",2]]},{"name":"OnBeforeResJnlPostLine","line":101,"kind":"procedure","access":"local","params":2,"steps":[[104,"call","UpdateSustainabilityResourceJournalLine",2]]},{"name":"OnAfterCopyItemJnlLineFromServShptForUndoServiceShipment","line":119,"kind":"procedure","access":"local","params":2,"steps":[[122,"call","UpdateSustainabilityItemJournalLine",2]]},{"name":"OnAfterCopyItemJnlLineFromServShptForUndoServiceConsumption","line":126,"kind":"procedure","access":"local","params":2,"steps":[[129,"call","UpdateSustainabilityItemJournalLine",2]]},{"name":"OnPostItemJnlLineAppliedToListOnAfterSetInvoicedQty","line":133,"kind":"procedure","access":"local","params":2,"steps":[[140,"call","UpdateSustainabilityItemJournalLine",3]]},{"name":"OnPostResourceJnlLineOnBeforeResJnlPostLine","line":144,"kind":"procedure","access":"local","params":2,"steps":[[147,"call","UpdateSustainabilityResourceJournalLine",2]]},{"name":"UpdateSustainabilityItemJournalLine","line":150,"kind":"procedure","access":"local","params":2,"steps":[[157,"ext","table",5902,"GetServHeader",0],[158,"call","IsGHGCreditLine",1],[160,"call","GetPostingSign",2],[169,"call","CanPostSustainabilityJnlLine",4]]},{"name":"UpdateSustainabilityItemJournalLine","line":187,"kind":"procedure","access":"local","params":3,"steps":[[195,"call","IsGHGCreditLine",1],[206,"call","CanPostSustainabilityJnlLine",4],[217,"ext","codeunit",6212,"GetTotalCO2eAmount",4]]},{"name":"UpdateSustainabilityResourceJournalLine","line":220,"kind":"procedure","access":"local","params":2,"steps":[[227,"call","IsGHGCreditLine",1],[235,"call","CanPostSustainabilityJnlLine",4]]},{"name":"UpdateSustainabilityResourceJournalLine","line":246,"kind":"procedure","access":"local","params":2,"steps":[[253,"ext","table",5902,"GetServHeader",0],[254,"call","IsGHGCreditLine",1],[256,"call","GetPostingSign",2],[261,"call","CanPostSustainabilityJnlLine",4]]},{"name":"UpdatePostedSustainabilityEmissionOrderLine","line":272,"kind":"procedure","access":"local","params":3,"steps":[[279,"ext","table",5902,"GetServHeader",0],[281,"call","IsGHGCreditLine",1],[282,"call","GetPostingSign",2],[285,"call","UpdatePostedSustainabilityEmission",4],[288,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"UpdatePostedSustainabilityEmissionOrderLine","line":293,"kind":"procedure","access":"local","params":2,"steps":[[300,"ext","table",5902,"GetServHeader",0],[302,"call","IsGHGCreditLine",1],[303,"call","GetPostingSign",2],[305,"call","UpdatePostedSustainabilityEmission",4]]},{"name":"CanPostSustainabilityJnlLine","line":368,"kind":"procedure","access":"local","params":4,"steps":[[376,"ext","table",6217,"IsValueChainTrackingEnabled",0]]}]}