{"title":"Codeunit 4587 SOA Impl, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/4587-soa-impl/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":4587,"name":"SOA Impl","app":"Sales Order Agent","url":"https://jonas-paprotka.de/ref/codeunit/4587-soa-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/4587-soa-impl/source/","path":"src/Apps/W1/SalesOrderAgent/app/src/Integration/SOAImpl.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:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:4400":{"name":"SOA Setup","url":"https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/"},"table:4325":{"name":"SOA Setup","url":"https://jonas-paprotka.de/ref/table/4325-soa-setup/"},"table:4594":{"name":"SOA Task","url":"https://jonas-paprotka.de/ref/table/4594-soa-task/"},"codeunit:457":{"name":"Environment Information","url":"https://jonas-paprotka.de/ref/codeunit/457-environment-information/"},"codeunit:7773":{"name":"Copilot Capability","url":"https://jonas-paprotka.de/ref/codeunit/7773-copilot-capability/"}},"procs":[{"name":"ScheduleSOAgent","line":32,"kind":"procedure","access":"internal","params":1,"steps":[[39,"ext","codeunit",8703,"LogError",6],[39,"ext","codeunit",4400,"GetFeatureName",0],[46,"write",4325,"Modify"],[49,"call","RemoveScheduledTask",1],[51,"call","ScheduleDelay",2],[53,"call","ScheduleSOARecovery",1],[55,"write",4325,"Modify"],[57,"ext","codeunit",8703,"LogUsage",4],[57,"ext","codeunit",4400,"GetFeatureName",0]]},{"name":"ScheduleSOARecovery","line":88,"kind":"procedure","access":"local","params":1,"steps":[[92,"call","ScheduleRecoveryDelay",0]]},{"name":"RemoveScheduledTasksIfAgentNotActive","line":102,"kind":"procedure","access":"internal","params":1,"steps":[[108,"ext","codeunit",4400,"IsAgentActive",1],[112,"call","RemoveScheduledTask",1],[113,"write",4325,"Modify"],[117,"call","CancelScheduledTasksForRecord",1],[124,"call","ScheduledTasksExistForRecord",1],[125,"ext","codeunit",8703,"LogUsage",4],[125,"ext","codeunit",4400,"GetFeatureName",0],[128,"ext","codeunit",8703,"LogError",6],[128,"ext","codeunit",4400,"GetFeatureName",0]]},{"name":"RemoveScheduledTask","line":132,"kind":"procedure","access":"internal","params":1,"steps":[[140,"ext","codeunit",8703,"LogUsage",4],[140,"ext","codeunit",4400,"GetFeatureName",0],[145,"ext","codeunit",8703,"LogUsage",4],[145,"ext","codeunit",4400,"GetFeatureName",0],[154,"call","CancelScheduledTasksForRecord",1]]},{"name":"CancelScheduledTasksForRecord","line":157,"kind":"procedure","access":"local","params":1,"steps":[[159,"call","CancelScheduledTasksForCodeunit",2],[160,"call","CancelScheduledTasksForCodeunit",2]]},{"name":"ScheduleDelay","line":195,"kind":"procedure","access":"local","params":2,"steps":[[201,"call","GetInstanceOffset",1],[203,"ext","codeunit",4400,"GetDispatcherBaseDelaySeconds",0],[204,"ext","codeunit",4400,"GetDispatcherDelayIncrementSeconds",0]]},{"name":"GetInstanceOffset","line":208,"kind":"procedure","access":"local","params":1,"steps":[[224,"ext","codeunit",4400,"CountNonArchivedSetups",1]]},{"name":"RemoveTaskLogsOlderThan24hrs","line":237,"kind":"procedure","params":0,"steps":[[248,"write",4594,"DeleteAll"]]},{"name":"RegisterCapability","line":252,"kind":"procedure","params":0,"steps":[[258,"ext","codeunit",457,"IsSaaSInfrastructure",0],[261,"ext","codeunit",7773,"IsCapabilityRegistered",1],[262,"ext","codeunit",7773,"ModifyCapability",4],[264,"ext","codeunit",7773,"RegisterCapability",4]]}]}