{"title":"Codeunit 5352 CRM Order Status Update Job, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5352-crm-order-status-update-job/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":5352,"name":"CRM Order Status Update Job","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5352-crm-order-status-update-job/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5352-crm-order-status-update-job/source/","path":"src/Layers/W1/BaseApp/Integration/D365Sales/CRMOrderStatusUpdateJob.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":{"codeunit:5344":{"name":"CRM Product Name","url":"https://jonas-paprotka.de/ref/codeunit/5344-crm-product-name/"},"table:5330":{"name":"CRM Connection Setup","url":"https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/"},"codeunit:5335":{"name":"Integration Table Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/"},"table:5344":{"name":"CRM Post","url":"https://jonas-paprotka.de/ref/table/5344-crm-post/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"table:5331":{"name":"CRM Integration Record","url":"https://jonas-paprotka.de/ref/table/5331-crm-integration-record/"},"table:5387":{"name":"CRM Post Buffer","url":"https://jonas-paprotka.de/ref/table/5387-crm-post-buffer/"}},"procs":[{"name":"OnRun","line":17,"kind":"trigger","steps":[[19,"call","UpdateOrders",1]]},{"name":"UpdateOrders","line":33,"kind":"procedure","access":"local","params":1,"steps":[[40,"ext","codeunit",5344,"FULL",0],[43,"ext","table",5330,"RegisterConnectionWithName",1],[45,"ext","table",5330,"GetDefaultCRMConnection",1],[47,"call","UpdateSalesOrders",1],[49,"ext","table",5330,"UnregisterConnectionWithName",1]]},{"name":"UpdateSalesOrders","line":52,"kind":"procedure","access":"local","params":1,"steps":[[61,"event","OnUpdateSalesOrdersOnBeforeFindIntegrationTableMapping",0],[63,"ext","codeunit",5335,"BeginIntegrationSynchJob",3],[65,"ext","codeunit",5335,"BeginIntegrationSynchJobLoging",4],[67,"call","CreateStatusPostOnModifiedOrders",0],[68,"ext","codeunit",5335,"UpdateSynchJobCounters",2],[70,"ext","codeunit",5335,"EndIntegrationSynchJobWithMsg",1],[70,"call","GetOrderStatusUpdateFinalMessage",0]]},{"name":"TryCreatePost","line":105,"kind":"procedure","access":"local","params":2,"steps":[[113,"write",5344,"Insert"]]},{"name":"TryCreatePost","line":117,"kind":"procedure","access":"local","params":2,"steps":[[125,"write",5344,"Insert"]]},{"name":"FindCoupledCRMSalesOrder","line":128,"kind":"procedure","access":"local","params":2,"steps":[[133,"ext","codeunit",5330,"IsCRMIntegrationEnabled",0],[136,"ext","table",5331,"FindIDFromRecordID",2]]},{"name":"FindCoupledCRMAccount","line":145,"kind":"procedure","access":"local","params":2,"steps":[[150,"ext","codeunit",5330,"IsCRMIntegrationEnabled",0],[153,"ext","table",5331,"FindIDFromRecordID",2]]},{"name":"CreateStatusPostOnModifiedOrders","line":163,"kind":"procedure","params":0,"steps":[[175,"write",5387,"Insert"],[180,"call","ProcessCRMPostBufferEntry",1]]},{"name":"ProcessCRMPostBufferEntry","line":184,"kind":"procedure","access":"local","params":1,"steps":[[204,"call","DeleteCRMPostBufferEntry",1],[212,"call","FindCoupledCRMSalesOrder",2],[213,"call","DeleteCRMPostBufferEntry",1],[219,"call","TryCreatePost",2],[224,"call","TryCreatePost",2],[229,"call","TryCreatePost",2],[235,"call","DeleteCRMPostBufferEntry",1],[240,"call","FindCoupledCRMAccount",2],[241,"call","DeleteCRMPostBufferEntry",1],[245,"call","TryCreatePost",2],[250,"call","DeleteCRMPostBufferEntry",1]]},{"name":"DeleteCRMPostBufferEntry","line":255,"kind":"procedure","access":"local","params":1,"steps":[[260,"write",5387,"Delete"]]}]}